Session length

1 / 20

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

Find the option that is right for you!

All options are one-time payments.

$12.50

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$30.00 $87.50 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $87.50 usd value for $30.00! You save $57.50!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$12.50 $18.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy