
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
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 Articles
- How to specify that an element should be pre-selected when the page loads in HTML?
- 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 the form should not be validated when disabled in HTML?
- How to include the audio/video controls in HTML?
- How to specify that the audio/video will start over again, every time it is finished 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 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 the URL of the page the link goes to in HTML?
- How to specify the HTML content of the page to show in the <iframe> in HTML?
- How to specify whether the form-data should be encoded while submitting to the server with HTML?
- How to specify whether the content of an element should be translated or not in HTML?

Advertisements