HTMLTrackElement

The interface for <track>. Extends HTMLElementElement.

Reflected properties

All setters are guarded and throw NoModificationAllowedError on a read-only document.

Property Attribute Type Notes
src src string Reflects verbatim — no base-URL resolution.
kind kind enum Keywords: subtitles · captions · descriptions · chapters · metadata. Missing → "subtitles"; invalid → "metadata".
srclang srclang string Reflects the content attribute verbatim.
label label string Reflects the content attribute verbatim.
default default boolean (presence) Reading reflects whether the attribute is present; writing false removes it, any other value sets it present.

See also