HTML5 Audio Tag Usage

06.08.2012 | HTML5

  <!DOCTYPE html> <html> <body> <audio controls="controls"> <source src="song.ogg" type="audio/ogg" /> <source src="song.mp3" type="audio/mpeg" /> Your browser

 
<!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.

Analyse

Entwurf

Development

Launch