Example

A simple <hr> tag that open PNLdev.com link:

Laboratory

description & Usage

To create a horizontal line between text or specific sections in html documents, we use the <hr> tag.

Using the <hr> tag is usually used to change the subject in the text area.

Notes

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<hr>

Global Attributes

The hr tag supports the HTML Global Attributes.

Event Attributes

The hr tag supports the HTML Event Attributes.

More Examples

Example

HTML <hr> tag Example #1

Laboratory

Example

<hr> HTML tag with custom style -Example #2

Laboratory

Default CSS

Most browsers will display the hr tag with the following default style: