HR (<hr>) Tag

by Jai 06-Jul-19

0 212


The <hr> is short form for horizontal rule. This tag is used to paragraph-level thematic break or line to separate document or sections in HTML document.

It is used when you want to change your topic in your HTML document. There is no need to close this tag as it is an optional tag.

Program:

<!DOCTYPE html>
<html>
 <head>
  <title>Hr Tag</title>
 </head>
<body>
<h2>HTML</h2>
<p>HTML is a Hypertext Markup Language. </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>

Output:

HR (<hr>) Tag


Share:


Comments

    Waiting for your comments

Leave a Reply