Certified HTML5 Developer Learning Resources hr-Tag for Horizontal Lines

Learning Resources
 

hr-Tag for Horizontal Lines


Horizontal rules are used to visually break up sections of a document. The


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:

This is paragraph one and should be on top


This is paragraph two and should be at bottom

This will produce following result:

This is paragraph one and should be on top


This is paragraph two and should be at bottom

Again


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.

 For Support