Back to Content

HTMLTimeElement

files/en-us/web/api/htmltimeelement/index.md

latest860 B
Original Source

{{ APIRef("HTML DOM") }}

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

{{InheritanceDiagram}}

Instance properties

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

  • {{domxref("HTMLTimeElement.dateTime")}}
    • : A string that reflects the datetime HTML attribute, containing a machine-readable form of the element's date and time value.

Instance methods

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The HTML element implementing this interface: {{HTMLElement("time")}}.