Audio

The audio element describes embed audio in webpage.

In audio, control attribute controls play, pause and volume.

In Html5, supported audio formats are Mp3, wav and ogg.

Sample code

<!DOCTYPE html>

<html>

<body>

<audio controls>

<source src=”audio.mp3″ type=”audio/mp3″>

<source src=”audio.ogg” type=”audio/ogg”>

The browser does not supported audio tag.

</audio>

</body>

</html>

More elements

More attributes