TetSharing

HTML tutorial

The structure of every web page: headings, links, images, forms. 12 short chapters, one idea each, every example runnable in the page.

Who it's for: Complete beginners, bloggers and designers who want to read and write the markup behind a page.

Prerequisites: None. Each example renders in a sandboxed preview right below the editor.

Start with chapter 1 →

A desk with two monitors in a dark room, one showing a code editor
Photo: leecampbell on Unsplash

How this HTML track is organized

The first four chapters explain what a document is made of: the page skeleton, elements and attributes, headings and paragraphs, and inline text markup. Chapters 5 to 8 add the content types every site needs: links, images, lists and tables. Chapters 9 and 10 build forms, and the last two give a page its structure and its metadata, the parts that browsers, screen readers and search engines read first.

Every example renders in a sandboxed preview below its editor, so you can change a tag and see the effect at once. Our test suite also loads each example in a headless browser and checks the text it displays. Facts are checked against the WHATWG HTML Living Standard, the specification browsers implement.

All 12 chapters

  1. 01Get started
  2. 02Elements and attributes
  3. 03Headings and paragraphs
  4. 04Text formatting
  5. 05Links
  6. 06Images
  7. 07Lists
  8. 08Tables
  9. 09Forms
  10. 10Input types and controls
  11. 11Semantic layout
  12. 12Head and metadata

Practice and reference

Final HTML quiz (12 questions)Official HTML documentation