hr

< html‎ | elements
Jump to: navigation, search

hr

This page has been flagged with the following issues:

High-level issues:


W3C Recommendation

Summary

The hr element (<hr>) represents a paragraph-level thematic break in text. ("HR" stands for "horizontal rule", but browsers are not required to use a horizontal rule to represent this element.)


Overview Table

DOM Interface HTMLHRElement

The hr (for horizontal rule) element (<hr>) represents a paragraph-level thematic break in text.

The <hr> tag, whilst historically used as a horizontal rule or section break is now used more for thematic breaks, such as separating different topics within a section of prose, or between scenes in a novel.

In HTML5, the <hr> tag defines a paragraph-level thematic break.

In HTML 4.01, the <hr> tag represents a horizontal rule.

However, the <hr> tag may still be displayed as a horizontal rule in visual browsers, but is now defined in semantic terms, rather than presentational terms.

Examples

This example uses the hr element to create a “paragraph-level thematic break”.

HTML

<p>This is a paragraph.</p>
<hr>
<p>With a “paragraph-level thematic break”.</p>

This is a paragraph.


With a “paragraph-level thematic break”.


Standards information

Related specifications

Specification Status Related Changes
HTML5 W3C Working Draft Semantic meaning to “paragraph-level thematic break”.
HTML 4.01 Specification W3C Recommendation

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic Support 0.2
0.8
1
1
1

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic Support Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)
Supported (when?)

See also

Related articles

HTML










































  • hr









… further results

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]