HTML vs CSS: structure vs style
The language that defines the structure and content of a webpage using tags and elements, not appearance.
Understanding HTML vs CSS: structure vs style in HTML & CSS
What it does: The <p> tag is a pure HTML content element - it places a paragraph on the page without any styling information. Setting font-size is a CSS concern - it changes how content looks, which is exactly what CSS is for. HTML uses angle-bracket tags to mark up content. CSS uses selectors and property-value pairs instead. Font size is a CSS property. It belongs in a .css file, not in the HTML file. They are separate languages. HTML structures content; CSS styles it. They work together but are distinct. The <link> tag in <head> with rel='stylesheet' loads an external CSS file. <style> is for writing CSS directly inside HTML.
Common mistakes: The <style> tag belongs inside <head>, not wrapping page content. Visible content should be inside <body>, not <style>. HTML elements cannot appear inside a CSS file. The <h1> tag belongs in an HTML file, not mixed into CSS rules.
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 1–12) and word search (Modules 1–23).
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
HTMLFill in the Blanks
Spot the Error
Student with a class code? Join your class →