HTML5 Tutorials & More

<hr> Tag

The <hr> tag inserts a horizontal rule.

Supported In HTML4: Yes

Supported In HTML5: Yes

HTML4 vs HTML5 Differences: In HTML 5, the <hr> tag displays a horizontal rule, and defines a change in the content. In HTML 4.01 it just displayes a horizontal rule. All attributes in HTML 4.01 (align, noshade, size, and width) are deprecated in HTML 4.01, and not supported in HTML 5. You should use CSS to style the hr element.

Attributes

Standard Attributes

All standard attributes are supported.

Event Attributes

All event attributes are supported.

HTML5 Tags