HTML5 Audio Tag Usage

Posted in HTML5, 06.08.2012 19:08

 
<!DOCTYPE html>
<html>
<body>

<audio controls="controls">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>

</body>
</html>

"controls" bewirkt die Anzeige einer Steuerelementleiste.