hr (Horizontal Rule) element

<hr> (Horizontal Rule Element)

Explanation

HR element inserts a horizontal ruler between two contents and separates it.
Content<hr>Content

Example Code:

Result :

Older Version HTML 4.01


New Version HTML5


  • In HTML5, it is also mentioned as "Block" element.
  • It is not compulsory to close this tag.
  • Contents or HTML comments cannot be placed inside this input.
It is available in the earlier versions of HTML.
It supports only the Global Attributes in HTML5.

Limitations:

It is applicable to all major web browsers.

Ask Questions

Ask Question