hr tag for Horizontal Lines

It creates a line from the current position in the document to the right margin and breaks the line accordingly. It is an empty element, so no opening or closing or in between text. It is used to visually break up sections in a web page as shown

HTML code <p>This is paragraph 1</p> <hr /> <p>This is paragraph 2</p>Browser output The hr Tag for Horizontal Lines

Apply for HTML Certification

https://www.vskills.in/certification/certified-html-designer

Back to Tutorials

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

Get industry recognized certification – Contact us

keyboard_arrow_up