How to add a spacer line in html

Article Faysal Shuvo

To create an awesome website we customize many tags and elements. Sometimes we need to break up the structure to separate the contents and we want to do that without creating classes or id. 

So in this article, we are going to learn How to add a spacer line in Html.


You can use a line break or horizontal line to break up the structure. The <hr> tag is called HTML spacer line. This tag stands for a horizontal rule. If you use this tag it will insert a horizontal rule. It will separate or divide the content of the website. 

<h1>This is a header </h1>
<hr>
<p>This is a paragraph</p> 

output: 


The <hr> tag is an empty tag. It does not require an end tag. Also to customize the color, height, and width you can do this by calling hr in your CSS file. 


I hope after reading this article you will get an idea about spacer lines in Html. If you have any feedback, questions about this article you can comment below