00
HTML basics

HTML basics

Tags, attributes, document structure — the foundation everything else sits on.

~ 88 min·8 lessons·updated apr 2026

What you'll learn


Lessons

Read in order. Each lesson stands on its own, but the order is deliberate.

  1. 01
    What HTML is
    A markup language, not a programming language — and why the browser bends over backwards to render anything you throw at it.
    8 min
  2. 02
    The shape of a document
    Doctype, html, head, body, charset, viewport — what each part is for and why skipping one bites later.
    10 min
  3. 03
    Tags and attributes
    Two ideas you'll use every day. Void elements, boolean attributes, global attributes — and the syntax rules that catch new writers out.
    9 min
  4. 04
    Text content
    Headings, paragraphs, lists, blockquotes, code, mark, abbr — the elements that carry your prose.
    13 min
  5. 05
    Links and images
    href, src, alt, srcset — and the small details that decide whether your page reads on a phone or a screen reader.
    11 min
  6. 06
    Tables and figures
    Tables are for tabular data. Figures wrap an illustration with its caption. Pick the right one.
    9 min
  7. 07
    Semantic sections
    header, nav, main, article, section, aside, footer — and friends. When to use which, and when div is still the right call.
    14 min
  8. 08
    Forms that work
    Inputs, labels, validation, submission — the bits browsers do for free, and the bits you have to wire up.
    14 min

Prerequisites

  • · Comfortable using a text editor
  • · Can open a file in a browser

After this, try