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

Code Example 1

<!-- code -->


<!-- code -->

Code Example 2


Code Example 3


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



 <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>


<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