How to preload an audio in HTML5 ? Last Updated : 15 Mar, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we will preload audio in HTML. We use preload=”auto” attribute to preload the audio file. The HTML Audio Preload Attribute is used to specify how the author thinks the audio should be loaded when the page loads. The audio preload attribute allows the author to indicate to the browser how the user experience of a website should be implemented. n some instances, this attribute can be ignored. You have to know about HTML <audio> preload Attribute Note: If autoplay is present, then the preload attribute is ignored. Below are the examples that illustrates the use of preload attribute. Example-1: When preload =” auto” HTML <!DOCTYPE html> <html> <body> <h1>GFG</h1> <p>Hit the button for audio</p> <audio controls preload="auto"> <source src="gfg.ogg" type="audio/ogg"> <source src="gfg.mp3" type="audio/mpeg"> </audio> </body> </html> Output: Example 1 Example 2: When preload = “none” : HTML <!DOCTYPE html> <html> <body> <h1>GFG</h1> <p>Hit the button for audio</p> <audio controls preload="none"> <source src="gfg.ogg" type="audio/ogg"> <source src="gfg.mp3" type="audio/mpeg"> </audio> </body> </html> Output: Example 2 Comment More infoAdvertise with us Next Article How to preload an audio in HTML5 ? P priyavermaa1198 Follow Improve Article Tags : Web Technologies HTML HTML5 HTML-Questions Similar Reads How to add controls to an audio in HTML5 ? In this article, we will learn how to add controls to audio in HTML5. The HTML <audio> controls attribute is used to specify the control to play audio which means it allows embedding an HTML5 music player with audio controls straight into the webpage. The current HTML5 most commonly used ogg, 2 min read How to Embed Audio and Video in HTML? HTML stands for HyperText Markup Language. It is used to design web pages using a markup language. It is a combination of Hypertext and Markup language. HTML uses predefined tags and elements that tell the browser how to properly display the content on the screen. So, in this article, we will learn 4 min read HTML DOM Audio preload Property The Audio preload property is used for setting or returning the value of the preload attribute of audio. The preload attribute is used to specify the way the author thinks the audio should be loaded when the page loads. The audio preload attribute allows the author to portray to the browser the way 2 min read HTML | DOM Audio load() Method The Audio load() method is used for reload the audio element. The Audio load() method is used to update the audio element after changing the source or other settings. The Audio load() method does not accept any parameters and does not return any values.Syntax audio.load() Example: html <!DOCTYPE 1 min read HTML | <audio> preload Attribute The HTML audio preload Attribute is used to specify the way the author thinks the audio should be loaded when the page loads. The audio preload attribute allows the author to portray to the browser about the way the user experience of a website should be implemented. Syntax: <audio preload="auto 1 min read Like