typestar

Semantics & metadata

23 steps in 4 sets of HTML.

Marking up what things mean rather than how they look. Page landmarks, media and embeds, and the metadata that decides how your page appears in a search result or a shared link.

Twenty-three steps. The landmarks set is the one that matters most and is skipped most often: a correct nav and main are the difference between a page a screen reader can navigate and one it cannot.

Start this tour

Page landmarks

Media & embeds

  • VideoA video element with controls, a poster frame and captions.
  • Captions and subtitlesA video without a text track is a video some people cannot use.
  • AudioAudio playback, with the attributes that keep autoplay tolerable.
  • Audio with fallbacksTwo formats and a link, because no single codec plays everywhere.
  • Responsive imagesServing the right image file for the screen that is asking.
  • Inline SVGA small icon written straight into the markup, styleable with CSS.
  • Reusable SVG iconsDefine the shape once, then reference it wherever the icon appears.
  • CanvasA canvas is a blank pixel buffer, so everything about it is invisible to assistive tech.
  • Embedded framesAn iframe with the attributes that keep an embed from misbehaving.

Metadata

Encore

  • article_page.htmlAn article page with social metadata, semantic structure and a figure.

The other HTML tours