hr tag border width code example
Example 1: css thinner hr
hr {
border: none;
height: 1px;
/* Set the hr color */
color: #333; /* old IE */
background-color: #333; /* Modern Browsers */
}
Example 2: how to change the color of the hr tag in html
<style>
hr{
height: 1px;
background-color: #ccc;
border: none;
}
</style>
Example 3: horizontal line html
<!-- code -->
<hr>
<!-- code -->