HTML - Horizontal Line

Horizontal line:

  • A horizontal line in HTML is defined by using the tag <hr>. Here hr stands for a horizontal rule.
  • <hr> tag is used to insert a thematic break in an HTML page or to separate the contents on the page.
  • <hr> tag is an empty tag that doesn't have a closing/end tag.
  • It comprises of the below attributes