asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > HR Element

<HR Element | HR Object


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.

NOTE: Only the <hr> start tag must be present. The element has no end tag.

Attributes

The <hr> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

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

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


Check out related books at Amazon

© 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