01Chapter 1: What visual hierarchy is and why it mattersVisual hierarchy is the order in which the elements of a page draw attention. Readers don't treat a page as a flat surface and read it evenly. Their eyes go to some things first, skim others, and skip the rest. A designer controls that order with size, contrast, position, and spacing. This chapter e8 min read
02Chapter 2: Size: bigger elements are seen firstThis chapter covers size as a visual cue. It assumes you know basic HTML (headings, paragraphs, links, buttons) and basic CSS (selectors, properties, custom properties, the box model). It also assumes you have seen how a typical page is laid out: a header, a main column, and some supporting content.8 min read
03Chapter 3: Building a consistent type scaleA type scale is a fixed set of font sizes that you reuse across a page. This chapter shows how to build one from a ratio, how to express it in CSS, and where it fails. It assumes you know basic CSS (selectors, properties, custom properties, the box model) and the HTML heading elements. The previous 7 min read
04Chapter 4: Contrast: making elements stand out from their surroundingsThis chapter assumes you know basic HTML (headings, links, buttons) and basic CSS (selectors, custom properties, the box model). It also assumes you read the previous chapters on size and the type scale. Here you will learn how contrast creates emphasis. The next chapter covers measuring contrast wi8 min read
05Chapter 5: Measuring contrast with WCAG ratiosThe previous chapter treated contrast as a cue: elements that differ from their surroundings in value, color, or weight get noticed. That works for hierarchy, but it leaves a gap. Whether gray text on white "looks fine" depends on your monitor, your eyesight, the room's lighting, and how long you ha7 min read
06Chapter 6: How people scan a pageThis chapter assumes you can read basic HTML and CSS (headings, lists, selectors, custom properties) and that you have met the idea that size and contrast create emphasis. It looks at the reader's side of hierarchy: where the eyes go on a page before any deliberate reading starts. The next chapter u8 min read
07Chapter 7: Position: where an element sits shapes its prioritySize and contrast work on an element's own appearance. Position works on its location. Two identical buttons in different places on a page will not get the same attention, because readers do not look at a page evenly. This chapter covers how placement sets priority and how to use it deliberately.8 min read
08Chapter 8: Spacing and proximity: grouping related contentEarlier chapters covered size, contrast, and position. This chapter covers the fourth tool, empty space. Readers decide which items belong together mostly from how far apart the items are, before they read anything. This chapter assumes you can write CSS with custom properties, know the box model, a8 min read
09Chapter 9: Combining size, contrast, and position without competing emphasisThis chapter assumes you know basic HTML and CSS, including custom properties. It also assumes you have read the earlier chapters on size, the type scale, contrast, WCAG ratios, and position. Here you will combine those cues and learn why adding more emphasis often makes a page weaker.6 min read
10Chapter 10: Keeping visual order and DOM order alignedThis chapter assumes you know basic HTML (headings, links, buttons), basic CSS (selectors, the box model, custom properties), and the layout ideas from earlier chapters: size, contrast, and position as hierarchy cues. Here you will learn why the order of elements in your HTML must match the order in9 min read
11Chapter 11: Preserving hierarchy on small and large screensA hierarchy that works on a laptop can fall apart on a phone. Headings wrap awkwardly, the sidebar lands in the wrong place, and the main button is lost among other elements. This chapter shows how to keep the same order of importance as the viewport changes.7 min read
12Chapter 12: Checking your work: squint test and contrast checksThis chapter assumes you know basic HTML and CSS, including custom properties and the box model. It also assumes you have read the earlier chapters on size, contrast, position, and combining cues. Here you will learn how to test a finished page and find hierarchy problems before your readers do.7 min read