Horje
How to create HTML Horizontal Rules | HTML Paragraphs Code
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



Read Full::
HTML Paragraphs Code
Category:
HTML Code
Sub Category:
HTML Paragraphs Code
Uploaded:
8 months ago
Uploaded by:
Admin
Views:
80

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

Single Articles
Sample of HTML Horizontal Rules
Full Example of HTML Horizontal Rules

Share on: