Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Line breaks (br) 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>Line one<br> Line two</p> | AA self-closing line break - the trailing slash is optional in HTML5 but both forms are valid | |
| 2<br/> | BInserts a line break inside the paragraph - 'Line two' starts on a new line without ending the paragraph | |
| 3<br> is self-closing - it has no content and needs no closing tag | CStacking multiple <br> elements for spacing is bad practice - use CSS margin instead | |
| 4<br> forces the next content onto a new line within the same block | D<p>Street<br> City<br> Country</p> | |
| 5<p>Hello<br></br>World</p> | E<br> is self-closing - it must not have a closing </br> tag | |
| 6<p>Section one</p><br><br><br><p>Section two</p> | F<p>Roses are red<br> Violets are blue</p> |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<br> — A self-closing HTML element that inserts a line break, forcing the next content onto a new line. It has no content and needs no closing tag.<p>Line one<br>
Line two</p><p>First line<br>
Second line<br>
Third line</p><p>42 Oak Ave<br>
Melbourne</p><p>Roses are red<br/>
Violets are blue</p><body>
<p>Hello<br>
World</p>
</body>