HTML <track> with kind Attribute
HTML <track> with kind Attribute
The kind
attribute specifies the kind of text track.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<video style="width:100%;height:330px" controls>
<source src="/reindeer.mp4" type="video/mp4">
<track src="/reindeer.vtt" kind="subtitles" srclang="en" label="English">
</video>
</body>
</html>
Attribute Values
Value | Explanation |
---|---|
captions |
Provide a transcription and possibly a translation of audio. Suitable for users who are deaf or when the sound is muted. |
chapters | Chapter titles are intended to be used when the user is navigating the media resource. |
descriptions | Textual description of the video content. It is suitable for users who are blind or where the video cannot be seen. |
metadata | Tracks used by scripts. Not visible to the user. |
subtitles | Provide translation of content that cannot be understood by the viewer. For example: dialogue or text that is not English in an English language film. |
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.