Style semantic pages and explain the cascade, units, sizing and readable text. Includes lesson practice, module checkpoints and linked portfolio projects; prerequisite review is additional. See the companion course guide.
Learning outcomes
Earn a cryptographically verifiable Certificate of Completion to showcase on LinkedIn and your resume upon finishing all module lessons and assessments.
Connect a stylesheet and diagnose a rule that does not apply. Practice: Style a second profile; deliberately break a declaration, then repair it. Evidence: Show the repaired rule in DevTools and identify which declaration was ignored.
Target intended nodes without leaking styles to unrelated content. Practice: Style a navigation list with a class, attribute selector, child combinator and focus state; add an unrelated list. Evidence: Record matched and unmatched nodes and the keyboard focus result.
Predict winning declarations and inherited values. Practice: Create two competing color rules, then compare source order, specificity and an inherited color. Evidence: Write the predicted winner before inspecting computed style; explain any discrepancy.
Choose lengths with an explicit sizing reference. Practice: Compare rem, percentages and clamp() in a narrow and wide container. Evidence: Record computed sizes, reference dimensions and why they change.
Select readable foreground/background pairs and explain color mixing. Practice: Build light and dark swatches; test contrast and retain a simple fallback for a modern color function. Evidence: Record actual foreground/background pairs and contrast for ordinary text; note untested states.
Predict the border box and prevent unintended overflow. Practice: Compare content-box and border-box cards with padding and long text. Evidence: Measure both rectangles and identify the cause of overflow.
Compose a readable article with a flexible measure. Practice: Restyle a paragraph using a fallback font, line-height and long-token wrapping. Evidence: Compare narrow and wide line wrapping; check that enlarged text stays visible.
Compose decoration independently of essential information. Practice: Create a card with two background layers and an outline; remove the decorative gradient. Evidence: Confirm text remains readable and keyboard focus remains identifiable.
Explain how block, inline and float boxes participate in flow. Practice: Contain a float with flow-root and compare the following box with and without containment. Evidence: Record container height and following-element position for both versions.