Create a website RSS feed

Horizontal Rules

Horizontal Rules

Last update on: 05-18-2008
The hr tag, which has no closing tag in HTML and no text associated with it, creates a horizontal line on the page. Rule lines are used to visually separate sections of a web page just before headings, for example, or to separate body text from a list of items.The <hr> tag has no closing tag in HTML. To convert this tag to XHTML and to ensure compatibility with HTML browsers, add a space and a forward slash to the end of the tag:

</hr>

If the horizontal line has attributes associated with it, the forward slash still appears at the end of the tag, as shown in the following examples:



Formatting Text's lessons:

Character-Level Elements
Formatting Using CSS
Preformatted Text
Horizontal Rules
Line Break
Addresses
Quotations
Text Alignment
Fonts And Its Attributes
Special Characters

Banner HomeServices Contact |  ©2009 http://www.iteachweb.net/