Horizontal Rule: HR Tag
You can draw a horizontal line in your HTML documents with the HR
tag. For example, there is an HR tag above this paragraph.
HR Attributes
A number of attributes are available with HR:
- SIZE
- Used to specify the thickness of the rule. Value is the number of
pixels desired.
- WIDTH
- Specifies the width of the rule. Value may be a number (in pixels)
or percentage (relative to the page size).
- ALIGN
- Specifies alignment for the rule (typically only useful if the width
has been set to something smaller than the width of the page). Value
may be LEFT, RIGHT or CENTER (the default).
- NOSHADE
- Use a plain line with no shading.
A plain <HR>
<HR SIZE=5>
<HR SIZE=50>
<HR WIDTH=200>
<HR WIDTH=70%>
<HR WIDTH=70% ALIGN=RIGHT>
<HR WIDTH=50% ALIGN=LEFT>
<HR NOSHADE>
![[HTML CD Home Page]](../Images/cdthumb.gif)
Vivian Neou, vivian@catalog.com
Copyright © 1999 Vivian Neou