Interview Questions

HTML5 Audio

The audio element represents the audio or sound stream.

Global Attributes:

src
autobuffer
autoplay
loop
controles

Example:

<!DOCTYPE html>
<html>

<head>
<title>Play sample Audio File</title>
</head>

<body>
<!-- Logic to play the Audio file -->
<audio controls>
  <source src="TDD.mp3" type="audio/mpeg">
</audio>
</body>
</html>