hr-Tag for Horizontal Lines

Certify and Increase Opportunity.
Be
Govt. Certified HTML5 Developer

Horizontal rules are used to visually break up sections of a document. The <hr> tag creates a line from the current position in the document to the right margin and breaks the line accordingly.

For example you may want to give a line between two paragraphs as follows:

<p>This is paragraph one and should be on top</p>
<hr />
<p>This is paragraph two and should be at bottom</p>

This will produce following result:

This is paragraph one and should be on top


This is paragraph two and should be at bottom

Again <hr /> tag is an example of an empty element, where you do not need opening and closing tags, as there is nothing to go in between them.

Share this post
[social_warfare]
small Tag
font Tag for more Font style

Get industry recognized certification – Contact us

keyboard_arrow_up