The <hr> tag represents a horizontal rule in HTML. It separates content in an HTML page. Just keep in mind the <hr> tag do not have end tag. It is added to the <body> … <body> tag in an HTML page.
Example
You can try to run the following code to add a horizontal rule to an HTML page
<!DOCTYPE html> <html> <head> <title>HTML Horizontal Rule</title> </head> <body> <p>The content of the document gets added here.</p> <hr> <p>Add other sections here.</p> </body> </html>