Horizontal Lines

Horizontal lines can be created using the <hr> tag. This puts a plain old ordinary line across the page like this:


There are 4 attributes you can set with the <hr> tag. They are:

sizethe height of the line in pixels.
widthstated either as width in pixels or as a percent of the page.
align Refers to the location that the line should take. Possible values are "left", "right", or "center".
noshadeCreates a solid bar with no shading.

Examples:

<hr size=35 width=20% align=right>



<hr size=5 width=30% align=center>


<hr size=15 width=80% align=left>


Assignment

Create a new document called "lines.htm"

Create this display






UFO of the Year Award











View it using the two browsers to ensure that it all works correctly.

Email it to me.

Back to the outline.