WE 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.
<hr>
Now let us add width to it like this
<hr width='100'>
As you can see now we have limited the width of the line. Now let us add color to this line.
<hr width=50 color=red>
What about size
<hr width=50 size=20>
To make it solid we have to add noshade attribute.
<hr width=50 size=20 noshade>
Align : Left, right or center
<hr color=red size=20 width='50%' align=right>
This article is written by plus2net.com team.
plus2net.com
15-01-2020
This saved my life! I had to remove a boring footer and used this to bring the page to life. Thanks plus2net!
✖
We use cookies to improve your browsing experience. . Learn more