|
Horizontial Lines
Adding a line across the page can help separate sections or just add effect. This tag is called the horizontal rule, which creates a line going from left to right across the page. The tag looks like so <HR> and is just placed on a new line in your HTML file, where ever you want the line to appear. No end tag is need ( like this </HR> ) as the line stops at the right side of the page. The line looks like this.
You can change the different attributes of the line to give it a different look if you like. I’ll show you the different tag pieces you can add now and you can try them out see what effects you can get.
<HR NOSHADE> - Stops the shadow on the line and makes it look more solid.
<HR WIDTH=?> - ? is the width you want the line to be in pixels.
<HR WIDTH=?%> - ? is the percentage you want the line to go across the screen.
<HR SIZE=?> - ? is the thickness you want the line to be in pixels, its normally 1 pixel.
<HR ALIGN=LEFT> - Aligns the line to the left.
<HR ALIGN=CENTER> - Centers the line.
<HR ALIGN=RIGHT> - Aligns the line to the right.
Next section - Lists
|