Definition and Usage The size attribute specifies height of the hr (horizontal ruler) element. Compatibility Notes The size attribute of...
Definition and Usage
The size attribute specifies height of the hr (horizontal ruler) element.
Compatibility Notes
The size attribute of the hr element was deprecated in HTML 4.01 and is not supported in XHTML 1.0 Strict DTD.
Use CSS instead.
CSS syntax: <hr style="height:10px" />
Syntax
Syntax Example
Attribute Values
Value | Description |
pixels | Specifies the height of the hr element in pixels. |
Browser Support
The attribute is deprecated, but still supported in all major browsers.
Example
Source | Output |
<hr size="3" /> | |