html hr tag code example

Example 1: how to change the color of the hr tag in html

<style>       
    hr{
        height: 1px;
        background-color: #ccc;
        border: none;
    }
</style>

Example 2: hr tag

<hr style="height:2px;border-width:0;color:gray;background-color:gray">

Example 3: horizontal line html

<!-- code -->

<hr>

<!-- code -->

Example 4: hr tag html

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

Example 5: 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