Horizontal rule (hr)
A self-closing HTML element that draws a horizontal line across the page, used to create a visual and thematic break between sections.
What it does: The <hr> here draws a horizontal line between the two headings. It has no content and no closing tag. <hr> is used to signal a meaningful shift in content, such as between two chapters or sections. <hr> is self-closing - it has no content and no closing tag. Writing </hr> is invalid HTML. HTML tag names must be lowercase. The correct form is <hr> not <HR>. Both <hr> and <hr/> are accepted in HTML5. The self-closing slash is optional. <hr> represents a thematic break - a topic shift or scene change. For a line break within text, use <br>. The correct element is <hr>. There is no <line> element in standard HTML.
Common mistakes: <hr> is a self-closing element - it must not be written as </hr>. The correct form is simply <hr> with no forward slash at the start. HTML tag names must be lowercase. <HR> with capital letters is non-standard. The correct form is <hr> in lowercase.
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
<hr>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 →