asp.net.ph

Skip Navigation Links

TRACK Element | TRACK Object

Language References


Defines text tracks for media elements.HTML 5

HTML Syntax

Remarks

The TRACK element is used to specify supplementary text tracks for <audio> and <video> elements.

Only the <track> start tag must be present. The element has no end tag.

Attributes

The <track> element supports the following attributes, in addition to global attributes common to all HTML media elements.

AttributeValueDescription
defaultdefaultSpecifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate
kindcaptions | chapters | descriptions | metadata | subtitlesSpecifies the kind of text track
labeltextSpecifies the title of the text track
srcURLRequired. Specifies the URL of the track file
srclanglanguage codeSpecifies the language of the track text data (Required if kind = subtitles )

Example



See Also

VIDEO



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note