Rendered from phase5/allowed.md

Phase 5 — Allowed

This file is the gauge for everything in phase5/. Do not use anything outside this list.

Learning goal

Choose CSS units intentionally and control what happens when constrained content does not fit.

HTML tags allowed

Semantic labelling attributes from Phase 4 remain available.

CSS properties allowed

Everything from Phase 4:

New in Phase 5:

Units allowed

Overflow values allowed

Not allowed

Learning rules

  1. Use px when a deliberate fixed reference size is useful.
  2. Use % when sizing should follow a containing block.
  3. Use rem for root-relative page spacing and type.
  4. Use em when a component should scale with its text.
  5. Use viewport units only when the viewport should control the result.
  6. Prefer svh when content must fit with mobile browser controls visible.
  7. Prefer dvh when a section should track the changing visible viewport.
  8. Use overflow: auto when excess content must remain reachable.
  9. Use overflow: hidden only when clipping is intentional and safe.

Pages