{{DomRef()}}
HTML hr element interface
DOM hr
elements expose the HTMLHRElement (or {{HTMLVersionInline("4")}} HTMLHRElement
) interface, which provides special properties (beyond the regular element object interface they also have available to them by inheritance) for manipulating hr
elements. In {{HTMLVersionInline("5")}}, this interface inherits from HTMLElement, but defines no additional members.
Properties
Name | Type | Description |
---|---|---|
align {{deprecatedGeneric("inline","HTML4.01")}} {{obsoleteGeneric("inline","HTML5")}} |
DOMString |
Enumerated attribute indicating alignment of the rule with respect to the surrounding context. |
noshade {{deprecatedGeneric("inline","HTML4.01")}} {{obsoleteGeneric("inline","HTML5")}} |
Boolean | Sets the rule to have no shading. |
size {{deprecatedGeneric("inline","HTML4.01")}} {{obsoleteGeneric("inline","HTML5")}} |
DOMString |
The height of the rule. |
width {{deprecatedGeneric("inline","HTML4.01")}} {{obsoleteGeneric("inline","HTML5")}} |
DOMString |
The width of the rule on the page. |
See also
- {{HTMLElement("hr")}} HTML element