Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • HTML Tutorial
  • HTML Exercises
  • HTML Tags
  • HTML Attributes
  • Global Attributes
  • Event Attributes
  • HTML Interview Questions
  • HTML DOM
  • DOM Audio/Video
  • HTML 5
  • HTML Examples
  • Color Picker
  • A to Z Guide
  • HTML Formatter
Open In App
Next Article:
HTML media attribute
Next article icon

HTML | preload Attribute

Last Updated : 30 Sep, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report

The HTML preload Attribute is used to specify the way the author thinks the media should be loaded when the page loads.
The preload attribute allows the author to portray to the browser about the way the user experience of a website should be implemented.

Supported tags:

  • audio: preload
  • video: preload

Example of Video preload:




<!DOCTYPE html> 
<html> 
  
<head> 
    <title> 
        HTML Video Preload Attribute 
    </title> 
</head> 
  
<body style="text-align:center"> 
  
    <h1 style="color:green"> 
    GeeksforGeeks 
</h1> 
    <h2 style="font-family: Impact"> 
HTML Video Preload Attribute 
</h2> 
    <br> 
  
    <video id="Test_Video"
        width="360"
        height="240"
        controls 
        preload="none"> 
        <source src="samplevideo.mp4"
                type="video/mp4"> 
    </video> 
  
</body> 
  
</html> 
 
 

Output:

Example of audio preload:




<!DOCTYPE html> 
<html> 
  
<head> 
    <title> 
        HTML Audio preload Attribute 
    </title> 
</head> 
  
<body style="text-align: center"> 
  
    <h1 style="color: green"> 
    GeeksforGeeks 
</h1> 
    <h2 style="font-family: Impact"> 
HTML Audio preload Attribute 
</h2> 
    <br> 
  
    <audio id="Test_Audio" controls 
        preload="none"> 
          
        <source src="sample1.mp3"
                type="audio/mpeg"> 
    </audio> 
</body> 
  
</html> 
 
 

Supported Browsers:The browsers supported by HTML video preload Attribute are listed below

  • Google Chrome 4.0
  • Firefox 4.0
  • Apple Safari 4.0
  • Opera 10.5


Next Article
HTML media attribute

S

shubham_singh
Improve
Article Tags :
  • HTML
  • Web Technologies
  • HTML-Attributes

Similar Reads

  • HTML method Attribute
    The HTML method Attribute is used to specify the HTTP method used to send data while submitting the form. There are two kinds of HTTP Methods, which are GET and POST. The method attribute can be used with the <form> element. Attribute Values: GET: It is the default value. In the GET method, af
    2 min read
  • HTML open Attribute
    The open attribute in HTML is used to indicate whether the details will be shown on page load. This is a boolean attribute. If it is not present by default then details are not shown. Note: This attribute is used by <details> element only. This attribute has been DEPRECATED and is no longer re
    1 min read
  • HTML type Attribute
    The type attribute in HTML specifies the type of content associated with an element, such as the button type, the media type of a source in an audio or video tag, or the type of input in a form element. Syntax: <element type="value"> Note: This attribute has been DEPRECATED and is no longer re
    2 min read
  • HTML Id Attribute
    HTML id attribute provides a unique identifier for an element within a document. It allows targeted selection and manipulation of the element through CSS and JavaScript, facilitating specific styling and functionality. In CSS, the id attribute is used using the # symbol followed by id. quotes are no
    5 min read
  • HTML media attribute
    The HTML media attribute is employed to specify the media or device the coupled document is optimized for. This attribute specifies that the target URL is designed for special devices like iPhones, speech, or print media. syntax<element media="value">Supported TagsElementDescription<a>Re
    3 min read
  • HTML link rel Attribute
    The <link> rel attribute is an essential part of HTML that specifies the relationship between the current document and a linked document or resource. It is used in conjunction with the href attribute to define how the two documents relate to each other. Syntax: <link rel="value" href="URL"
    2 min read
  • HTML selected Attribute
    The selected attribute in HTML is used to specify which option should be by default selected when the page loads. This is a boolean attribute. The option that has the selected attribute will be displayed by default. Syntax: <option selected>value</option>Note: This attribute can be used
    2 min read
  • HTML src attribute
    The HTML src attribute specifies the URL or file path of an external resource, such as an image, video, audio file, or script, to be embedded or referenced within a webpage. Syntax: <element src="url">HTML src attribute Supported tagsTagDescription<audio>Embeds sound content for playback
    2 min read
  • HTML required Attribute
    It is a Boolean attribute that is used to specify that the input element must be filled out before submitting the Form. Elements: These attributes can be associated with three elements which are listed below:   <input><select><textarea>Syntax: <input required>Example-1: In th
    3 min read
  • HTML | <video> preload Attribute
    The HTML audio preload Attribute is used to specify the way the author thinks the video should be loaded when the page loads. The video preload attribute allows the author to portray to the browser about the way the user experience of a website should be implemented. Syntax: <video preload="auto
    1 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences