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
Default CSS
Most browsers will display the hr tag with the following default style: