horizontal line html
Horizontal lines are a way to separate content and can be done using the HTML HR element. This is also called Horizontal Rule in HTML.
Global Attributes
This tag supports all the global attributes described in − HTML Attribute Reference
Specific Attributes
The HTML <hr> tag also supports following additional attributes −
Attribute | Value | Description |
---|---|---|
align | left right center |
Deprecated − Specifies the alignment of the horizontal rule. |
noshade | noshade | Deprecated − Removes the usual shading effect that most browsers display. |
size | pixels or % | Deprecated − Specifies the height of the horizontal rule. |
width | pixels or % | Deprecated − Specifies the width of the horizontal rule. |
Event Attributes
This tag supports all the event attributes described in − HTML Events Reference
Browser Support
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |