Latest

recent

HTML hr size Attribute

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

<hr size="pixels" />

Syntax Example

<hr size="3" />

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" />

HTML hr size Attribute Reviewed by 1000sourcecodes on 03:02 Rating: 5
Powered by Blogger.