Skip to main content

<hr> : Horizontal Rule

The <hr> element is used to display a horizontal line.

Attributes

color

The color of the line. Defaults to gray.

Examples

The following example will display a red horizontal line.

<hr color="red"/>

Version History

VersionChanges
1.0Initial release.