

- 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 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 Questions & Answers
- How to specify that the details should be visible to the user in HTML?
- How to specify that the form should not be validated when disabled in HTML?
- How do we create the title of the text track in HTML?
- How do we set the range that is considered to be of low value in HTML?
- How to specify the kind of text track in HTML?
- HTML DOM Track Object
- How to include content to be presented by browsers that do not support the <embed> tag in HTML?
- How to specify that the target will be downloaded when a user clicks on the hyperlink in HTML?
- How to set the range that is considered to be of high value in HTML?
- How to set that the text direction will be submitted in HTML?
- How can Tensorflow be used to confirm that the saved model can be reloaded, and would give same results?
- 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?
- HTML DOM Track default Property
- HTML DOM Track kind Property
Advertisements