Element (type) selectors
An element selector that targets every <p> element on the page. The tag name is used directly as the selector, followed by a CSS declaration block.
What it does: 'a' is the HTML tag name used directly as a CSS selector. No dot or hash prefix — that's the element selector pattern. This p rule can be overridden by a .intro { color: red } class rule or a #lead { color: green } ID rule. Element selectors are global — they apply to every element of that type on the page, not just the first one. Element selectors have the lowest specificity. Class selectors (0,1,0) and ID selectors (1,0,0) override them. The selector is followed by a space and then the opening brace. A colon after the selector name is invalid CSS.
Common mistakes: CSS element selectors should be lowercase. 'P' should be written as 'p'. CSS property-value pairs require a colon separator. It should be color: red; not color red;.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
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
p { }Fill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →