typestar

Document structure

28 steps in 6 sets of HTML.

The document itself. Doctype and head, headings and text, lists, links and images, and tables done properly with a caption and real header cells.

Twenty-eight steps, all of it validated by the Nu Html Checker, the same validator behind validator.w3.org. Every snippet here parses clean, which is more than can be said for most HTML on the web.

Start this tour

The document

Text & headings

Lists

Tables

  • TablesA data table: header cells label the columns, data cells hold the values.
  • Table sections and scopeHead, body and foot sections, with scope telling each header what it labels.
  • Cells that spancolspan widens a cell; rowspan deepens it. Count carefully or the grid breaks.
  • Columns as a groupcolgroup is the one place you can address a whole table column at once.

Encore

  • landing_page.htmlA complete landing page: head metadata, hero, feature list, footer.
  • docs_page.htmlA documentation page: skip link, sidebar, a table of contents, and content that reads in order.

The other HTML tours