Source Code:
A normal horizontal line:
A horizontal line with a width of 50%:
Result:
W3Schools.com
- Try it yourself