

- 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 if and how the author thinks the audio/video should be loaded when the page loads in HTML?
You can try to run the following code to learn how to implement a preload attribute to allow the author to give a hint to the browser for the best user experience. Works for both <audio> and <video> tags −
Example
<!DOCTYPE HTML> <html> <body> <video width="300" height = "200" preload = "none" controls> <source src = "/html5/foo.ogg" type = "video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> Your browser does not support the video element. </video> </body> </html>
- Related Questions & Answers
- How to specify that an option should be pre-selected when the page loads in HTML?
- How to specify that the element should automatically get focus when the page loads in HTML?
- How to specify that an <input> element should be pre-selected when the page loads in HTML?
- How to specify that the form should not be validated when disabled in HTML?
- How to include the audio/video controls in HTML?
- How to specify that the details should be visible to the user in HTML?
- How to set the audio output of the video to mute in HTML?
- How to place the cursor (auto focus) in the text box when a page gets loaded with HTML?
- How to specify that the audio/video will start over again, every time it is finished in HTML?
- How to specify the URL of the page the link goes to in HTML?
- How to specify whether the form-data should be encoded while submitting to the server with HTML?
- How do we specify that the audio/video will start playing as soon as it is ready in HTML?
- How to add video in HTML page?
- How to specify whether the content of an element should be translated or not in HTML?
- How to specify the HTML content of the page to show in the <iframe> in HTML?
Advertisements