--- title: HTMLDataElement slug: Web/API/HTMLDataElement tags: - API - HTML DOM - HTMLDataElement - Interface - NeedsTranslation - Reference - TopicStub - data translation_of: Web/API/HTMLDataElement ---
{{APIRef("HTML DOM")}}

The HTMLDataElement interface provides special properties (beyond the regular {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating {{HTMLElement("data")}} elements.

{{InheritanceDiagram(600, 120)}}

Properties

Inherits properties from its parent, {{domxref("HTMLElement")}}.

{{domxref("HTMLDataElement.value")}}
Is a {{domxref("DOMString")}} reflecting the {{htmlattrxref("value", "data")}} HTML attribute, containing a machine-readable form of the element's value.

Methods

No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', "#htmldataelement", "HTMLDataElement")}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-data-element', 'HTMLDataElement')}} {{Spec2('HTML5 W3C')}}  

Browser compatibility

{{Compat("api.HTMLDataElement")}}

See also