The <hr> Tag

By Tony 2023.2.20


When you have different paragraphs or sections on your webpage, its very handy to use a line that seperates them (Like that line ⬆️). This article will tell you how to do this in HTML.

This is what you need to do:

<hr>
Note: <hr> tag doesn't have a closing tag.

hr here stands for "horizontal rule", which means it starts a new line like <br> tag, then it draws a line like this:

hr line

This tag is very helpful when you need to seperate different contents or sections. You can style it, give it a title, or assign it an id or a class.