Skip to content
Related Articles

Related Articles

HTML | <hr> size Attribute

Improve Article
Save Article
  • Difficulty Level : Basic
  • Last Updated : 28 May, 2019
Improve Article
Save Article

The HTML <hr> size Attribute is used to specify the height of the horizontal line in terms of pixels.


<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.


<!DOCTYPE html>
        HTML hr size Attribute
<body style="text-align:center;">
    <hr width="500px;" 
    <p>Computer science portal</p>
    <hr width="70%" 


Supported Browsers: The browser supported by HTML <hr> size Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!