--- title: HTMLAreaElement slug: Web/API/HTMLAreaElement translation_of: Web/API/HTMLAreaElement ---
HTMLAreaElement
接口提供了一些属性和方法 (除了常见的对象{{domxref("HTMLElement")}} 接口提供的属性和方法通过继承也能获取到) 用来控制一个area元素的布局和展现。
从它的父对象{{domxref("HTMLElement")}}继承的,还有从{{domxref("URLUtils")}}继承的。
true
) or active (false
).':'
), of the referenced URL.'?'
), if any, of the referenced URL.long
containing the element's position in the tabbing order.Inherits methods from its parent, {{domxref("HTMLElement")}} and implement those from {{domxref("URLUtils")}}.
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "the-map-element.html#the-area-element", "HTMLAreaElement")}} | {{Spec2('HTML WHATWG')}} | The following property has been added: download .Technically, the URL-related properties, media , host , hostname , pathname , port , protocol , search , and hash , have been moving to the {{domxref("URLUtils")}} interface, and HTMLAreaElement implements this interface. |
{{SpecName('HTML5 W3C', "embedded-content-0.html#the-area-element", "HTMLAreaElement")}} | {{Spec2('HTML5 W3C')}} | Technically, the properties tabindex and accesskey are now defined on {{domxref("HTMLElement")}}.The following property is now obsolete: nohref .The following properties have been added: rel , relList , media , hreflang , type , host , hostname , pathname , port , protocol , search , and hash . |
{{SpecName('DOM2 HTML', 'html.html#ID-26019118', 'HTMLAreaElement')}} | {{Spec2('DOM2 HTML')}} | No change from {{SpecName("DOM1")}}. |
{{SpecName('DOM1', 'level-one-html.html#ID-26019118', 'HTMLAreaElement')}} | {{Spec2('DOM1')}} | Initial definition. |