Unit 1: XML
- XML = eXtensible Markup Language (stores & transports data)
- Characteristics: Human-readable, platform-independent, Unicode-supported
- Tags must be closed, case-sensitive, single root element required
- Declaration: <?xml version="1.0" encoding="UTF-8"?>
- Structure: Prolog + Document Element (root + children)
- XML Rules: Proper nesting, one root, quoted attributes, case sensitive
Unit 2: Bootstrap 4
- Bootstrap: CSS framework for responsive design
- Grid System: container > row > col-*
- Tables: table, table-striped, table-bordered
- Colors: text-primary, bg-success, etc.
- Alerts: alert alert-success, etc.
- Forms: form-control, form-group
- Buttons: btn, btn-primary, btn-group
- Pagination: pagination, page-item, page-link
Unit 3: jQuery
- jQuery = JS library for simplified DOM & event handling
- Syntax: $(selector).action()
- Selectors: $("p"), $("#id"), $(".class")
- Events: ready(), click(), keypress(), focus(), blur(), change()
- Effects: show(), hide(), fadeIn(), slideUp(), stop(), chaining
- Manipulations: append(), prepend(), before(), after(), wrap()
- Get/Set: text(), html(), attr(), val(), css()
Unit 4: JSON
- JSON = Lightweight data format (JavaScript Object Notation)
- Features: Human-readable, key-value pairs, compact
- Compared to XML: smaller, faster, no tags, no comments allowed
- JSON Object: {"name": "John", "age": 25}
- Arrays: ["Apple"], [1,2,3], [true,false], [{"id":1},{"id":2}]
- Multi-dimensional: Array of objects inside another object
Unit 5: AJAX
- AJAX = Asynchronous JS & XML (update page without reload)
- Works using XMLHttpRequest object
- Key Props: onreadystatechange, readyState, responseText/XML
- Methods: open(), send(), setRequestHeader()
- Async = background data load, Sync = wait till complete
- Steps: Browser -> Request -> Server -> Response -> Page Update
Unit 6: Node.js
- Node.js = JS runtime on server (uses Chrome's V8 engine)
- Features: Non-blocking, event-driven, fast I/O
- Install: nodejs.org, run via terminal
- Server: http.createServer(req, res).listen(port)
- Modules: Built-in (fs, http, url), Custom via require()
- File Ops: readFile(), writeFile(), appendFile(), unlink(), rename()
- Query String: url.parse(req.url, true).query