Building a simple page with HTML and CSS together
Placed in the head of the HTML file, it connects the page to style.css, so the CSS rules in that second file style the content and structure written in the HTML file.
Understanding Building a simple page with HTML and CSS together in ACARA Digital Technologies Years 9–10
What it does: This code is content and structure only, with no styling. It is the first step before the CSS file is added. The link tag goes in the head of the HTML file. It tells the browser which CSS file to load. A link element uses the href attribute to point to the file. The src attribute is for things like images. A CSS rule has a selector and a property with a value. The h1 tag with its text is HTML content. Add one rule at a time, save, then refresh. That way you can see what each rule changes.
Common mistakes: A link tag finds the CSS file with the href attribute, not src. Line 3 should be href="style.css">. Without href the browser never loads the stylesheet. A dot at the start means a class selector, so this rule would only match class="img". To style every <img> element the selector must be plain img, with no dot.
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 155–225) and word search (Modules 116–225).
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="style.css">Fill in the Blanks
Spot the Error
Student with a class code? Join your class →