HTML
size property
tag
Example
A horizontal rule with a height of 30 pixels:
Try it »
Browser support





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:
The height of the element
In our CSS tutorial, you can find more details about height propertydetails.
Syntax
HTML
tag
HTML