HTML and CSS Certification Practice Test 2026 - Free HTML and CSS Practice Questions and Study Guide

Question: 1 / 400

Which tag is used to create a horizontal line in HTML?

<hr>

The tag used to create a horizontal line in HTML is the <hr> tag. This tag defines a thematic break in the content and visually represents it as a horizontal rule or line across the page. It is often used to separate sections of content, providing a clear visual cue that can enhance the document's structure and readability. The <hr> tag is an empty tag, meaning it does not have a closing tag and is correctly utilized by simply including it within the HTML document where the line is desired.

The other options do not serve as valid methods for creating horizontal lines in HTML. For example, <line> is not a standard HTML tag and is primarily associated with SVG (Scalable Vector Graphics) for drawing lines. <break> is not a defined HTML element; instead, <br> is used for line breaks. Lastly, <separator> is not a recognized HTML tag for any purpose. Thus, the <hr> tag stands out as the only correct choice for creating horizontal lines in HTML documents.

Get further explanation with Examzify DeepDiveBeta

<line>

<break>

<separator>

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy