Inserting Horizontal Lines

Use the <HR> tag to create a horizontal line, where HR stands for horizontal rule. The <HR> tag is one-sided. When a text-based browser encountes a <HR> tag, it inserts a line by repeating an underlined symbol across the width of the page.

The Netscape browser and IE 4.0, supports  an extension to the <HR> tag that lets yuou defineline size more recisely. You can use the WIDTH property to tell the browser what percentage of the width of the diisplay area the line should occupy. For example, WIDTH=50% tells the browser to place the line so that its length covers half the screen. You use the SIZE property to specify the line's width in pixels. A pixel, short for picture element, is 1/72 .

Example

<HR ALIGN=CENTER SIZE=12 WIDTH=100%>
<HR ALIGN=CENTER SIZE=6 WIDTH=50%>
<HR ALIGN=CENTER SIZE=3 WIDTH=25%>
<HR ALIGN=CENTER SIZE=1 WIDTH=10%>
 








previous page back to main help page next page