Skip to content

Document and content

Writing a valid document with meaningful structure, text, links and media.

What must every HTML document contain, and why?

7 lessonsStart at the foundations

The lessons

A little more,
with every lesson.

Read in order, or follow the question
that brought you here.

  1. 01
    Foundation / Lesson

    HTML Document Structure

    The parts every HTML document needs, and why each one exists.

    13 min
  2. 02
    Foundation / Lesson

    Text and Content Elements

    Headings, paragraphs, lists and other elements that give text its meaning.

    15 min
  3. 03
    Foundation / Lesson

    Links and Navigation

    How links connect pages and how to write them so people and machines can follow them.

    12 min
  4. 04
    Foundation / Lesson

    Images and Media

    Adding images, figures and audio or video with alternatives that everyone can use.

    13 min
  5. 05
    Foundation / Lesson

    Semantic HTML

    Choosing elements for what content means rather than how it looks.

    13 min
  6. 06
    Practice / Lesson

    Text Direction and Ruby

    Right-to-left text, mixed-direction names, and ruby annotations for East Asian reading.

    12 min
  7. 07
    Practice / Lesson

    Graphics and Embedded Content

    Canvas, inline SVG, MathML, and the older object and embed elements, and when each one is the right choice.

    13 min

These are published explanations, not a complete syllabus or a record of course completion.