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

Question: 1 / 400

Which HTML element is used to display a horizontal rule?

<hr>

The HTML element used to display a horizontal rule is the `<hr>` tag. This element is designed to create a thematic break in the content, which visually separates sections of content on a webpage. When rendered in a web browser, the `<hr>` tag typically produces a horizontal line across the width of its container, providing a clear distinction between different sections or themes.

The `<hr>` element is a self-closing tag, meaning it does not require a closing tag. It's a semantic element, conveying the concept of a shift in themes or topics, which enhances the accessibility and understanding of the web content.

The other options listed are not valid HTML elements: `<rule>`, `<line>`, and `<separator>` do not exist in the HTML specification, which is why they would not render or provide the intended functionality of drawing a horizontal line. Using the correct element, `<hr>`, ensures that your webpage is compliant with HTML standards and behaves as expected in browsers.

Get further explanation with Examzify DeepDiveBeta

<rule>

<line>

<separator>

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy