HTML and CSS Reference
In-Depth Information
Name
track
Synopsis
<track>
(XHTML:
<track/>
or
<track />
)
Not in HTML 4.01
. Specifies an external resource (text or audio) that is timed with a video
or audio media file that improves accessibility or enhances navigation.
Usage
Categories:
None
Permitted contexts:
As a child of an
audio
or
video
element, before any flow content
Permitted content:
Empty
Start/end tags:
This is an empty (void) element, meaning it has only a start tag and may not have any con-
tents. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a
trailing slash (
<track/>
or
<track />
).
Attributes
HTML5 Global Attributes
default
(
default="default"
in XHTML)
Indicates that the track should be used by default if it does not override user preferences.