Horje
How to create HTML Horizontal Rules

The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.

The <hr> element is used to separate content (or define a change) in an HTML page:


Sample of HTML Horizontal Rules

To understand HTML Horizontal Rules We give below codes
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr>

Full Example of HTML Horizontal Rules

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr>

<h2>This is heading 2</h2>
<p>This is some other text.</p>
<hr>

<h2>This is heading 2</h2>
<p>This is some other text.</p>

</body>
</html>

Output should be:

Full Example of HTML Horizontal Rules





Related Articles
What is HTML Paragraphs HTML Paragraphs
How to display HTML Paragraphs HTML Paragraphs
How to create HTML Horizontal Rules HTML Paragraphs
How to create HTML Line Breaks HTML Paragraphs
What is the Poem Problem in HTML Paragraphs HTML Paragraphs
How to create <pre> Element in HTML Paragraphs HTML Paragraphs

Single Articles
Sample of HTML Horizontal RulesHTML Paragraphs
Full Example of HTML Horizontal RulesHTML Paragraphs

Read Full:
HTML Paragraphs
Category:
Web Tutorial
Sub Category:
HTML Paragraphs
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
202


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_headings_hr

Share on: