HTML HORIZONTAL RULE


  •  HTML Horizontal Rule renders a line in a web browser. It is an empty element.
  • The <hr /> element defines an HTML Horizontal Rule.
  • Look at the example below, to see how it works.

Example:

 

<! DOCTYPE html> 

<html> 

        <head>

            <title> Horizontal Rule</title>

        </head>

        <body>

            <p> This is a paragraph. </p>

            <hr /> 

            <p> This is a paragraph. </p>

        <body>

<html>


Output:

This is a paragraph.

_____________

This is a paragraph.