how to give color to a horizontal line in html w3schools code example
Example: how to draw a horizontal line in javascript
var elem = document.createElement("hr");
elem.setAttribute("width", "100px");
document.body.appendChild(elem);
var elem = document.createElement("hr");
elem.setAttribute("width", "100px");
document.body.appendChild(elem);