HTML 3


Horizontal line attributes

Width
This is the Long of the Horizontal line. You can give it Width Value As a Pixel or As a percentage.

<hr width="550%">
<hr width=60%>
Alignment

This is the place of Horizontal line. you can change the place as Left, Right or Center.

<hr align="left">
<hr aligh="Right">
<hr align=center">

No Shade Option
You can add a No Shade inside for the Rule. if you add this code for your HTML page, That Rule automaticaly add gray color.

<hr size="50" noshade>

Color

This is the colour of Horizontal rule. You can give any colour for that.

<hr color="#ff0000">
<html>
<body>
<h1 align="center">Horizontal Rule</h1>
<hr color="#ff0000">
<hr size="10" width=70% color="#ff0000" align="left">
<hr size="50" width="400" align="Center">
<hr size="70" width=30% align="right">
<hr size="30" width="600" noshade>
</body>
</html>