Restyling one document with a different stylesheet
Change which stylesheet this tag points to and the same HTML looks totally different, because presentation lives in the CSS file, not in the content.
Understanding Restyling one document with a different stylesheet in Years 9–10 Data & Information
What it does: Every page linked to this stylesheet shows its h1 headings in crimson after this one rule changes, so the presentation is controlled in one place. The link tag points the HTML at a CSS file. Changing the href to another file swaps the whole look of the page. HTML holds content and structure. CSS holds presentation, so a new look usually only needs a new or edited stylesheet.
Common mistakes: A link tag uses href, not src, to point to the stylesheet file. Without href the browser cannot load dark.css, so the presentation will not change. It should be href="dark.css">. CSS rules use curly braces { }, not round brackets. Without them the rule is ignored and the heading will not be restyled. It should be h1 { color: navy; }.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 17–51) and word search (Modules 6–132).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
<link rel="stylesheet" href="dark.css">Fill in the Blanks
Spot the Error
Student with a class code? Join your class →