Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/myscript/public_html/classes/classdb.php on line 42
<hr> Horizontal Rule Element | Grouping Elements | HTML5 Tutorial | Example

hr (Horizontal Rule) element

<hr> (Horizontal Rule Element)


HR element inserts a horizontal ruler between two contents and separates it.

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.


It is applicable to all major web browsers.

Ask Questions

Ask Question