0
0
HTMLmarkup~5 mins

Line breaks and horizontal rules in HTML - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What HTML tag is used to create a line break?
The <br> tag is used to insert a line break in HTML. It forces the text to continue on the next line.
Click to reveal answer
beginner
What does the <hr> tag do in HTML?
The <hr> tag creates a horizontal rule, which is a horizontal line used to separate content visually.
Click to reveal answer
beginner
Is the <br> tag self-closing or does it need a closing tag?
The <br> tag is self-closing, meaning it does not need a separate closing tag like </br>.
Click to reveal answer
beginner
Can you use multiple <br> tags to add extra space between lines?
Yes, you can use multiple <br> tags in a row to add extra line breaks and create more vertical space.
Click to reveal answer
beginner
What is a good real-life example of when to use <hr> in a webpage?
Use <hr> to separate sections of content, like dividing an article into parts or separating a header from the main content, similar to drawing a line on paper to separate ideas.
Click to reveal answer
Which tag inserts a line break in HTML?
A&lt;line&gt;
B&lt;hr&gt;
C&lt;break&gt;
D&lt;br&gt;
What does the <hr> tag create?
AA paragraph
BA horizontal line
CA line break
DA vertical line
Is the <br> tag a self-closing tag?
ANo
BOnly in XHTML
CYes
DOnly in HTML4
Which tag would you use to separate two sections of content visually?
A&lt;hr&gt;
B&lt;br&gt;
C&lt;div&gt;
D&lt;span&gt;
How can you add extra vertical space between lines?
AUse multiple <code>&lt;br&gt;</code> tags
BUse multiple <code>&lt;hr&gt;</code> tags
CUse <code>&lt;line&gt;</code> tags
DUse <code>&lt;break&gt;</code> tags
Explain how to use <br> and <hr> tags in HTML and when to use each.
Think about breaking lines vs separating sections.
You got /3 concepts.
    Describe the visual effect of <br> and <hr> tags on a webpage.
    Imagine reading a book or article.
    You got /3 concepts.