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 |
Apply for HTML Certification
https://www.vskills.in/certification/certified-html-designer