What is horizontal rule in HTML Page?

HTMLWeb DevelopmentFront End Technology

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.


You can try to run the following code to add a horizontal rule to an HTML page

<!DOCTYPE html>
      <title>HTML Horizontal Rule</title>

      <p>The content of the document gets added here.</p>
      <p>Add other sections here.</p>


Updated on 22-Dec-2021 09:06:49