Sometimes, we want to make a vertical line in HTML.
In this article, we’ll look at how to make a vertical line in HTML.
How to make a vertical line in HTML?
To make a vertical line in HTML, we can add some styles to the hr element.
For instance, we werite
<hr width="1" size="500" />
to set the hr element’s width and size to make it vertical.
If the width is less than its size, then we see a vertical line.
Conclusion
To make a vertical line in HTML, we can add some styles to the hr element.