HTML Horizontal Line

HTML Horizontal Line

HTML Horizontal Line

HTML horizontal line or rule is used to separate sections on the web page.

  • <hr/> tag draws a full-width horizontal line on the web page to separate the contents.

  • Horizontal line define by <hr/> tag.

  • <hr/> tag is the example of One-Sided Tag.


Example:

Content of Section 1
<hr/>
Content of Section 2

Example Explanation:

In the above, we have shown an example of HTML Horizontal Line.

  • <hr/> tag make a line between the "Content of Section 1" and "Content of Section 2" sections which shows the separation of sections.

Run the code to see the effect.