1. Structure
  2. HTML

Structure ยท a series in ten lessons

HTML

HTML is "the Latin of the web": the language everything else on the platform is built from, and worth learning precisely. These lessons treat it as what it is, a language with a grammar, a parser and a runtime tree, and teach the vocabulary you choose from every time you write a page.

The lessons

Principles
  1. 01HTML as a language

    What markup is, where HTML came from, the tension between the page author and a forgiving parser, and understanding the markup tree as the structure of the page.

  2. 02The document

    The skeleton, the doctype and rendering modes, character encoding, and what the parser does.

  3. 03Elements, attributes and entities

    Syntax as a contract: void elements, the attribute type system, character references and comments.

  4. 04Content models and validity

    Well-formed versus valid, content categories as a type system, and the validator as your linter.

Semantics
  1. 05Landmarks and sectioning

    The elements that give a page its regions, and the cure for <div>-itis.

  2. 06Headings, text and lists

    The heading outline, text-level meaning, and the three kinds of list.

  3. 07Tables

    Tables for tabular data, marked up so every reader can follow them.

  4. 08Interactive elements

    <details>, <dialog>, popovers, <meter> and <progress>: interaction the browser provides before any script runs.

Metadata
  1. 09The head and the machine-readable layer

    Title, meta, link, and the structured data search engines and AI agents read.

  2. 10Extending HTML

    data-* attributes, custom elements, and a reminder use platform primitives always before writing code.

HTML taught elsewhere

Some HTML is big enough to have a section of its own, where it meets the topics it depends on: