{{DomRef()}}
The HTMLHRElement
interface provides special properties (beyond those of the {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating {{HTMLElement("hr")}} elements.
Properties
Inherits properties from its parent, {{domxref("HTMLElement")}}.
Name | Type | Description |
---|---|---|
align {{obsolete_inline}} |
{{domxref("DOMString")}} | Enumerated attribute indicating alignment of the rule with respect to the surrounding context. |
color {{obsolete_inline}} |
{{domxref("DOMString")}} | The name of the color of the rule. |
noshade {{obsolete_inline}} |
{{domxref("Boolean")}} | Sets the rule to have no shading. |
size {{obsolete_inline}} |
{{domxref("DOMString")}} | The height of the rule. |
width {{obsolete_inline}} |
{{domxref("DOMString")}} | The width of the rule on the page. |
Methods
No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "text-level-semantics.htmlgrouping-content.html#the-hr-element", "HTMLHRElement")}} | {{Spec2('HTML WHATWG')}} | The color property has been added, as an obsolete property, to increase compatibility with the existing web. |
{{SpecName('HTML5 W3C', "grouping-content.html#the-hr-element", "HTMLAnchorElement")}} | {{Spec2('HTML5 W3C')}} | The following properties are now obsolete: align , noshade , size , and width . |
{{SpecName('DOM2 HTML', 'html.html#ID-ID-68228811', 'HTMLHRElement')}} | {{Spec2('DOM2 HTML')}} | No change from {{SpecName("DOM1")}}. |
{{SpecName('DOM1', 'level-one-html.html#ID-68228811', 'HTMLHRElement')}} | {{Spec2('DOM1')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoDesktop(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatGeckoMobile(1.0)}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} |
See also
- The HTML element implementing this interface: {{ HTMLElement("hr") }}