asp.net.ph

Skip Navigation Links

HR Element | HR Object

Language References


Draws a horizontal rule.HTML 2, 3.2, 4, 4.01, 5

HTML Syntax

Remarks

The HR element draws a horizontal line across the document frame or window. Horizontal rules visually divide information into sections.

If not specified, the HR element defaults to a height of 2 pixels, and spans the width of the page.

The amount of vertical space inserted between a rule and the content that surrounds it depends on the user agent.

The HR element requires only a start tag; the end tag is forbidden.

Members

HR Members

Example

The following example draws a horizontal rule similar to the ones rendered on this page.

<hr size=1 width="90%">


© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note