Check out example codes for "hr tag in html". It will help you in understanding the concepts better.

Code Example 1

<!-- code -->

<hr>

<!-- code -->

Code Example 2

<hr><hr>

Code Example 3

<h1>HTML</h1>

 <p>HTML is a language for describing web pages.....</p>


 <hr>

<h1>CSS</h1>

 <p>CSS defines how to display HTML elements.....</p>

Code Example 4

<h1>Horizontal Lines</h1>
<p>All you have to do is add this simple tag:</p>


<hr>


<p>Everything else in this example is not necessary.</p>

Code Example 5

<hr> <!--   it represents a horizontal line break, in HTML4.0 we use <hr>, 
            in XHTML1.0 we use <hr/>,  in HTML5(which is the current version of 
            HTML) we can use both <hr> and <hr/>    
       -->

Learn ReactJs, React Native from akashmittal.com