Enter HTML5 entry to proficient:<audio> label

Source: Internet
Author: User
Keywords tags HTML5 Getting started to master

<audio> Label

Definitions and usage

<audio> tags define sounds, such as music or other audio streams.

Instance

A simple HTML 5 audio:

<audio src= "Someaudio.wav" >
Your browser does not support audio tags.
</audio>

Differences between HTML 4.01 and HTML 5

The <audio> tag is a new tab for HTML 5.

Tips and comments

Tip: You can place textual content between the start and end tags so that older browsers can display information that doesn't support the label.

Property

Property value describes AutoPlay AutoPlay if this property occurs, the audio plays immediately after it is ready. Controls controls if this property appears, the control is displayed to the user, such as the play button. Loop loop If this property occurs, the playback starts again whenever the audio ends. Preload preload If this property occurs, the audio is loaded on page load and ready to play. If you use AutoPlay, this property is ignored. The URL of the audio to be played by the SRC URL.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.