Source Code:
Result:
A normal horizontal line:
A horizontal line with a width of 50%:
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself