How to create horizontal line in HTML Page

If you want to set a content separate from another, then use the horizontal rule. For example, you may have the following horizontal line on some website:

Horizontal Tag Example

Above, a line separating the content from the Read More articles. This is what we call horizontal rule.

To implement horizontal rule on a website, use the <hr> element. Add the element to the <body> … </body>. Unlike other HTML elements, <hr> do not have an end tag.

Let us now see how to set horizontal rule on a web page and implement the <hr> tag:

Example

Output

Horizontal Tag HTML

 

HTML5 Tutorial
The href attribute in HTML Page
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading