HTML elements: opening and closing tags
A closing tag - the forward slash before the tag name signals the end of an HTML element.
What it does: In this span element, 'My text' is the content sitting between the <span> opening tag and the </span> closing tag. The forward slash always comes before the tag name in a closing tag, like </p>. The closing tag must use the same tag name as the opening tag. <h2> is closed with </h2>, not </heading>. Without a forward slash, <p> is an opening tag. To end the paragraph element you need </p> with a slash.
Common mistakes: The opening h1 tag is malformed - it is missing the closing angle bracket >. It should be <h1> not <h1 title. The paragraph is closed with <div> instead of </p>. The closing tag must match the opening tag and use a forward slash.
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 →