Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML hr size attribute

HTML
size property

HTML hr Tag Reference HTML


tag

Example

A horizontal rule with a height of 30 pixels:


Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the size property.


Definition and Usage

HTML5 does not support


The size attribute. Use CSS instead.

In HTML 4.01,


the size attribute is deprecated.

The size attribute specifies the height of the horizontal rule, in pixels.


Compatibility notes

In HTML 4.01,


The size attribute is deprecated. Use CSS instead.

CSS syntax:


CSS example: setting


The height of the element

In our CSS tutorial, you can find more details about height propertydetails.


Syntax


HTML
tag