Skip to main content
PProfileMatch
← Path

HTML Fundamentals · HTML Document Structure and Semantic Elements Explained

0 XP
  1. 1 current stop: learning
  2. 2 upcoming
  3. 3 upcoming
  4. 4 upcoming
  5. 5 upcoming

Finish after stop 5

Stop 1 of 5 · Bike shop: checking the paperwork

Trick to keep in mind+3 XP

The doctype is a mode switch for the browser, not a label describing your page.

Browsers keep two rendering modes: a strict, modern one and a legacy one that copies old browsers' quirks. The first line of the file is the browser's cue for which to use. It says nothing about letters, language or titles; those each have their own home (a meta charset tag, the lang attribute, the title element).

Read it once, then a question tests whether the trick stuck.