HTML HR Tag | HR Tag | HTML <hr> Tag Tutorial By WDH

HTML HR Tag


<hr> tag in HTML

The <hr> tag stands for Horizontal Rule.

The <hr> tag represents a division or break in the text.

This breaks can split the content into two fragments with different topics.

Browsers usually represent this break visually, through a horizontal line.

It does not have a closing tag.

Example

Hi
<hr>
How
<hr>
You
<hr>

Try Yourself


attributes in <hr> tag

 

  • color
  • width - deprecated, but still supported by some browsers.