next up previous
Next: Fonts and Font Sizes Up: Text Formatting with HTML Previous: Special Characters

Horizontal rules and Line breaks

There are two tags that can be used to control the layout of your page.

Neither have a closing tag or associated text.

Their use is fairly straightforward.

Horizontal Rule <hr>

The <hr> has 4 attributes that may be associated with it.

Putting the above together we can create so simple effects. For Example:





The HTML code to achieve this is relatively straightforward:

<HR WIDTH=40% ALIGN=CENTER>
<HR WIDTH=30% ALIGN=CENTER>
<HR WIDTH=20% ALIGN=CENTER> 
<HR WIDTH=10% ALIGN=CENTER>


next up previous
Next: Fonts and Font Sizes Up: Text Formatting with HTML Previous: Special Characters
Dave Marshall
9/28/2001