PageResource.com - Web Development Tutorials

HTML5 Audio Tag Attributes

HTML5 introduces the <audio> tag for music clips and streaming. Here are the attributes of the new tag.

Attribute Value Description
autoplay autoplay Specifies that the audio will start playing as soon as it is ready.
controls controls Specifies that controls will be displayed, such as a play button.
loop loop Specifies that the audio will start playing again (looping) when it reaches the end
preload preload Specifies that the audio will be loaded at page load, and ready to run. Ignored if autoplay is present.
src url Specifies the URL of the audio to play

Learn how to use the Audio Tag

Leave a Reply


Copyright © The Web Design Resource. All rights reserved. | Contact Us | Privacy Policy