HTML hr Tag

The <hr> tag in HTML stands for horizontal rule or line.

HTML <hr> Tag is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections. It is used when you abruptly change your topic in your HTML document.

The <hr> tag is an empty tag, and it does not require an end tag.

The HTML <hr> tag is mainly used for creating a horizontal line.

It is a block-level element. It transfers all the elements after it to another line.

Example

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML <hr> tag</title>
</head>

<body>
    <h2>HTML</h2>
    <p>HTML is a language for describing web pages.</p>
    <hr>
    <h2>HR Tag </h2>
    <p> HR tag is used to draw a horizontal line within the texts to sepate content.
    <p>
</body>

</html>
HTML hr Tag Example Output