HTML sl;track sgt; kind property
The type of data that a kind property value is used to place a label added to a media element, which can be subtitles, captions, descriptions, chapters, or metadata, refer to the following example:
Video elements with two subtitle tracks:
<source src="forrest_gump.mp4" type="video/mp4">
<source src="forrest_gump.ogg" type="video/ogg">
<track src="subtitles_en.vtt" kind="subtitles" src
label="English">
<track src="subtitles_no.vtt" kind="subtitles" srclang="no"
label="Norwegian">
</video>
Browser support
Internet Explorer 10, Opera, and Chrome support kind properties.
Definitions and usages
The Kind property specifies the kind of track.
The difference between HTML 4.01 and HTML5
The label is a new HTML5 label.
Grammar
The property value
Value | Describe |
---|---|
captions | The track definition is a short description that will be displayed in the player. |
chapters | The track defines chapters for navigating media resources. |
descriptions | The track defines a description that is used to describe the content of the medium through audio, if the content is not playable or visible. |
metadata | The track defines what the script uses. |
subtitles | The track defines captions for displaying them in a video. |