Rendered from phase4/allowed.md

Phase 4 — Allowed

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

Learning goal

Complete the box model, make declared sizes predictable, and add responsive size constraints to Phase 3 layouts.

HTML tags allowed

Document structure

Content / controls

CSS properties allowed

Everything from Phase 3:

New in Phase 4:

Allowed values and units

Not allowed

Box-model rules

  1. Read every box from inside out: content → padding → border → margin.
  2. Under content-box, padding and border are added outside width and height.
  3. Under border-box, padding and border are included inside width and height.
  4. Margin always remains outside the declared dimensions.
  5. Prefer width: 100% with max-width for containers that may shrink.
  6. Use min-width cautiously because it can force overflow.
  7. Prefer min-height when content may grow.
  8. Do not put changing text in a restrictive max-height while overflow is unavailable.

Attributes allowed

Applicable rules from ./rules.html

Pages