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>


Published on 18-Jan-2018 10:00:40