IT. Expert System.

HTML

track


Tag Description

The <track> tag specifies text tracks for media elements (<audio>and <video>).

This element is used to specify subtitles, caption files or other files containing text, that should be visible when the media is playing.

This tag has the form:

<track>
</track>

HTML5 and HTML4.01 Differences

This tag is new for HTML5.

HTML5   = New for HTML5

Attributes

Attribute Value Description
defaultHTML5 default Specifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate
kindHTML5 captions
chapters
descriptions
metadata
subtitles
Specifies the kind of text track
labelHTML5 text Specifies the title of the text track
srcHTML5 URL (required) Specifies the URL of the track file
srclangHTML5 language_code Specifies the language of the track text data (required if kind="subtitles")

Global Attributes

This tag also supports the HTML Global Attributes.

Event Attributes

This tag also supports the HTML Event Attributes.

Examples

The following example shows the basic use of this tag:

<video width="320" height="240" controls>
  <source src="forrest_gump.mp4" type="video/mp4">
  <source src="forrest_gump.ogg" type="video/ogg">
  <track src="subtitles_en.vtt" kind="subtitles" srclang="en" label="English">
  <track src="subtitles_no.vtt" kind="subtitles" srclang="no" label="Norwegian">
</video>

Browser Support

Chrome Firefox IE Safari Opera
18.0 31.0 10.0 6.0 15.0

Doctype Declaration Support

The following table lists the doctype declarations this element may appear in:

HTML4.01 / XHTML1.0 XHTML 1.1 HTML 5
Traditional Strict Frameset

Miscellaneous Information

Defined In: HTML5
Empty Tag: No


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1709 / . Delta: 0.03113 с