

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to specify the kind of text track in HTML?
Use the kind attribute in HTML to specify the kind of text track in HTML. For example, you can set the kind as subtitles for subtitle files.
Example
You can try to run the following code to implement the kind attribute −
<!DOCTYPE HTML> <html> <body> <video width = "300" height="200" controls autoplay> <source src = "/html5/foo.ogg" type = "video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> <track src = "subtitles_en.vtt" kind = "subtitles" srclang = "en" label = "English"> <track src = "subtitles_ru.vtt" kind = "subtitles" srclang = "ru" label = "Russia" default> Your browser does not support the video element. </video> </body> </html>
- Related Questions & Answers
- HTML DOM Track kind Property
- Set the language of the track text data in HTML
- How do we create the title of the text track in HTML?
- Set the kind of decoration used on text in CSS
- How to specify citation in HTML?
- HTML DOM Track Object
- How to specify the URL of the page the link goes to in HTML?
- How to specify the language of the element's content in HTML?
- How to specify the HTML content of the page to show in the <iframe> in HTML?
- Specify the dimensions of a Tkinter text box in pixels
- How to specify the URL of the image to use in different situations in HTML?
- How to specify a minimum value in HTML?
- HTML DOM Track default Property
- HTML DOM Track label Property
- HTML DOM Track src Property
Advertisements