HTML | <hr> size Attribute
The HTML <hr> size Attribute is used to specify the height of the horizontal line in terms of pixels.
Syntax:
<hr size="pixels">
Attribute Values: It contains single value pixels which specify the height in terms of pixels.
Note: The <hr> size Attribute is not supported by HTML 5.
Example:
<!DOCTYPE html> <html> <head> <title> HTML hr size Attribute </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <hr width="500px;" size="10"> <p>Computer science portal</p> <hr width="70%" size="20"> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by HTML <hr> size Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Recommended Posts:
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.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.


