"> " />
Easy Tutorial
❮ Html Paragraphs Att Video Src ❯

HTML <audio> preload Attribute

HTML <audio> Tag

Example

Setting the preload element to preload:

&lt;audio controls preload="none">
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">

  Your browser does not support the audio element.
</audio>

Browser Support

All major browsers support the preload attribute, except Internet Explorer.


Definition and Usage

The preload attribute specifies whether or not the audio should be loaded after the page loads.

This attribute is ignored if the autoplay attribute is set.


Differences Between HTML 4.01 and HTML 5

The preload attribute is a new attribute in HTML 5. The <audio> tag is a new tag in HTML5.


Syntax

Attribute Values

Value Description
load Specifies whether to preload the audio. Possible values: auto - Loads the entire audio after the page loads<br> meta - Loads only the metadata after the page loads<br> none - Does not load the audio after the page loads

HTML <audio> Tag

❮ Html Paragraphs Att Video Src ❯