make horizontal line css 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: html horizontal line style
<hr style="width:50%", size="3", color=black>
<hr style="height:2px; width:50%; border-width:0; color:red; background-color:red">
Example 3: horizontal line html
<hr>
Example 4: how to draw a horizontal line in javascript
var elem = document.createElement("hr");
elem.setAttribute("width", "100px");
document.body.appendChild(elem);