Introduction:

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.

Description:

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>
<html>
<head>
    <title>This is the example of hr tag</title>
</head>
<body>
    <p>This is above line.</p>
    <hr>
    <p>This is below the line.</p>
  
</body>
</html>

Output:


 draw a horizontal line in html using hr tag

I hope this article will help to you after reading.

0 comments


Leave a comment

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

You may also like