In this article we are going to explain what is <hr> tag in html or why use hr tag in HTML or how to use hr element in html or how to draw a horizontal line in html with example.


The <hr> element is used to specify a thematic break between paragraph-level elements. It is typically rendered as a horizontal line.

Example of HTML hr Tag

Let's see the code to display the horizontal line.

 <!DOCTYPE html>
    <title>This is the example of hr tag</title>
    <p>This is above line.</p>
    <p>This is below the line.</p>


 draw a horizontal line in html using hr tag

I hope this article will help to you after reading.

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

You may also like