Fixing common HTML and CSS mistakes
Finding and fixing small slips in code, such as a missing closing tag, quote, semicolon or brace, or a class name that does not match. Check your code against the rules to spot each one.
Understanding Fixing common HTML and CSS mistakes in ACARA Digital Technologies Years 9–10
What it does: The semicolon after the value and the closing brace are the small details that stop the rule breaking the styles that follow. Both use the name note, so the style applies. A spelling difference such as notes would mean the rule never matches. Most elements need a closing tag. Without </p>, the browser has to guess where the paragraph ends, which can break the layout below it. Class names must match exactly between HTML and CSS. mnu and menu are different names, so the rule never finds the element. The href must match the real file name and path. styles.css is not the same file as style.css, so the browser cannot load the stylesheet.
Common mistakes: The href has the wrong file path. The stylesheet is called style.css, so the browser cannot find style.cs and no styles load. Check the Network or Sources tab in Inspect for a failed file. It should be href="style.css". The margin declaration is missing its semicolon. Without it the browser joins it to the padding line and may ignore both. It should be margin: 8px;.
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
debuggingFill in the Blanks
Spot the Error
Student with a class code? Join your class →