- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 identify that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate in HTML?
Use the default attribute to identify that the track is to be enabled, if you’re providing with two subtitle tracks for the video.
Example
You can try the following code to implement the default attribute for tracks −
<!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 Articles
- How to specify that the details should be visible to the user in HTML?
- How to include content to be presented by browsers that do not support the tag in HTML?
- How do we create the title of the text track in HTML?
- How to specify the kind of text track in HTML?
- How to specify that the form should not be validated when disabled in HTML?
- How do we set the range that is considered to be of low value in HTML?
- How to specify that the target will be downloaded when a user clicks on the hyperlink in HTML?
- HTML DOM Track Object
- How can TensorFlow be used with keras.Model to track the variables defined using sequential model?
- How to specify that the styles only apply to this element's parent element and that element's child elements in HTML?
- While travelling in a train, it appears that the trees near the track are moving whereas co-passengers appear to be stationary. Explain the reason.
- HTML DOM Track default Property
- HTML DOM Track kind Property
- HTML DOM Track label Property
- HTML DOM Track src Property

Advertisements