Horizontal rule - line html codeWE can draw lines across the screen or of some particular length by using <hr> tag. This <hr> tag can take some attributes and accordingly display the line inside our html pages. Let us try this simple hr tag. The output is below it.
Now let us add width to it like this
As you can see now we have limited the width of the line. Now let us add color to this line.
What about size
To make it solid we have to add noshade attribute.
Align : Left, right or center <hr color=red size=20 width='50%' align=right>
This article is written by plus2net.com team.
![]() | ||||||
| ||||||