Anatomy of a webpage
A webpage is a body made of parts, and every part has a name. Hover any region of the page below and it will be labelled — what it is called, which HTML element it stands for, and what it is actually there to do.
| Component | Status |
|---|---|
| Header | Shipped |
| Footer | In review |
Index of parts
Numbers match the labels on the page. Hover or focus one to light up the part it names.
Containers and leaves
Most parts nest inside other parts, which is the whole point of the faint inner rings — hover the button group and you can see it sitting inside the hero. Only one part is ever strongly outlined: the smallest one under the pointer.
Same look, different element
Nothing on this page proves what an element is by looking at it. A
<button> and a <div> can be
pixel-identical; the difference is what the browser, the keyboard and
a screen reader can do with them.
Everything in here is inert
The controls in the mock are stand-ins rather than real inputs — the diagram is a picture of a page, so nothing inside it should be focusable. The index above is real, and works with the keyboard.