HTML Basics

Idea: HTML = content only. CSS = style only.

HTML code in VS Code showing basic tags
HTML code example in VS Code (light mode).

Semantic vs Non-semantic

CSS & Selectors

CSS selectors: type, class, id, descendant in VS Code
Selectors: type, class, id, descendant.

Accessibility (A11y)

Good vs weak text contrast in code
Good contrast vs weak contrast.

DOM & Rendering

  1. Browser gets HTML with HTTP.
  2. Parse → build DOM tree.
  3. Load CSS/JS → apply to DOM.
  4. Render to screen.
DOM flow notes in VS Code-like image
DOM flow: HTML → DOM → apply CSS/JS → render.

Lists • Tables • Figures

HTML table markup example
Table markup (thead, tbody, tfoot, scope).

Exam Checklist (tick each one)

Checklist HTML code in VS Code-like image
Checklist HTML sample.

Back to top ↑