The HTML <hr> width attribute is used to specify the width of the horizontal line in terms of pixels or percent.
- pixels: It sets the width of <hr> attribute in terms of pixels.
- %: It sets the width of <hr> attribute in terms of percentage (%).
Note: The <hr> width attribute is not supported by HTML 5.
Supported Browsers: The browser supported by HTML <hr> width attribute are listed below:
- Google Chrome
- Internet Explorer
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.