The Audio tag is a new tag introduced in HTML5. You can use it to play audio sound like .mp3, wav, and .ogg. I have used five types of sound formats to show which formats are compatible for browsers. A WAV file is a common sound that is supported by most browser versions.Syntax<audio src="URL" controls> </audio>Syntax for more than one audio format<audio controls="controls" autoplay loop> <source src="URL1" type="audio/mp3" /> <source src="URL2" type="audio/wma" /> <source src="URL3" type="audio/x-wav" /></audio>
You can use the loop attribute to play sound repeatedly.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: