hr in html w3schools code example

Example 1: which is right or in html

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

Example 2: hr tag html

<hr> <!-- A horizontal line -->

Example 3: what does in html mean

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

<!--the hr tag stands for horizontal rule and will make a line across your page at that point-->
 <hr>

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

Tags:

Html Example