Roots
Back

Other HTML

Horizontal Rule

You can draw a line across your page using the horizontal rule tag;

<hr>

This will create a default rule, like this;


Additional Formatting

<hr align="alignment" color="name / code" noshade size="svalue / spercentage" width="wvalue / wpercentage">

alignment - This can be left, right or center.
name - The name of a color from the many which are recognised as keywords.
code - The hex code of a color.
noshade - If this is included, the rule will display as a solid block of color. If you specify a color, this will automatically be applied.
svalue - The height of the rule in pixels.
spercentage - The height of the rule as a percentage of the containing element.
wvalue - The width of the rule in pixels.
wpercentage - The width of the rule as a percentage of the containing element.

For example;

<hr align="center" color="#000000" size="10px" width="50%">