how to use hr tag in css insead of html code example
Example 1: horizontal line html
<!-- code -->
<hr>
<!-- code -->
Example 2: how to draw a horizontal line in javascript
var elem = document.createElement("hr");
elem.setAttribute("width", "100px");
document.body.appendChild(elem);