Answers Search Help
Boston University home page
HTML: Introduction
 
 
    Components
 
 
 
 
 
 
    Syntax
 
 
 
 
 
    Essential Tags
 
 
 
 
 
 
 
 
    HTML Headings
 
 
    Text
 
 
 
 
    Layout
 
 
 
 
 
 
 
    Links & Images
 
 
 
 
    Publishing
 
 
    Also See
 
 

Horizontal Rule

The <hr> tag places horizontal rules in a document.

<hr> - singular tag (in XHTML, always close as <hr />)

Options:

Options for horizontal rules are: align, size, width, and color. All option parameters should be included inside double quotes.

<hr align="center" size="10" width="300" color="red" /> produces the following:


<hr align="center" size="30" width="100" color="blue" /> produces the following:


NOTE: Not all Web browsers display all horizontal rule variables. If you wish to use specific colors and sizes of lines, you would be better off using graphics instead of the <hr> tag.

 

WebCentral Using Publishing Learning Training Consulting WebCentral
Answers Search Help
NIS  |  OIT  |  Boston University  |   January 9, 2007