Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Horizontal rule (hr) worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<p>Part one.</p> <hr> <p>Part two.</p> | AA horizontal line drawn between two paragraphs - creates a visual and thematic break | |
| 2<hr/> | BHTML tag names must be lowercase - <HR> should be written as <hr> | |
| 3<hr> is self-closing - it has no content and needs no closing tag | CA self-closing horizontal rule - the trailing slash is optional in HTML5 but both forms are valid | |
| 4<hr> represents a thematic break - a shift in topic or scene | D<hr> is self-closing - it must not have a closing </hr> tag | |
| 5<hr></hr> | E<h1>Intro</h1> <hr> <h2>Details</h2> | |
| 6<HR> | F<p>Chapter one ends here.</p> <hr> <p>Chapter two begins.</p> |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<hr> — A self-closing HTML element that draws a horizontal line across the page, used to create a visual and thematic break between sections.<p>First section.</p>
<hr>
<p>Second section.</p><p>Topic one.</p>
<hr/>
<p>Topic two.</p><h1>Chapter One</h1>
<hr>
<p>Content starts here.</p><body>
<p>Intro.</p>
<hr>
<p>Conclusion.</p>
</body><h2>Part A</h2>
<p>Details.</p>
<hr>
<h2>Part B</h2>