HTML hr size Attribute
HTML <hr> tag
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" />
In our CSS tutorial you can find more details about the
height property.
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" />
|
|
Try-It-Yourself Demos
hr size
attribute example
Set the hr height with the hr size attribute.
In CSS:
height example
Set the hr height with CSS.
HTML <hr> tag
Learn XML with <oXygen/> XML Editor - Free Trial!
 |
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|