PART 01
Make styles predictable
- 01Connect a stylesheet and understand the cascadeCreate a separate stylesheet, target elements, and use DevTools to see which declaration wins.
- 02The box model, sizing, and spacingBuild predictable lesson cards and distinguish content, padding, border, and margin.
- 03Typography, color, and readabilityCreate type and color tokens with clear hierarchy and sufficient contrast.
- 04Interaction states and form stylingStyle hover, focus, disabled, and invalid states while preserving visible keyboard focus.