1 <audio controls>
2<source src="sound.ogg" type="audio/ogg">
3<source src="sound.mp3" type="audio/mpeg">
4No audio support.
5</audio>
6
1MIME Types for Audio Formats
2Format MIME-type
3MP3 audio/mpeg
4OGG audio/ogg
5WAV audio/wav
6
7If simply audio '<audio>' tag is written then audio controls will not appear on the web page.
8and for showing audio controller we need to write controls attribute in audion tag '<audio controls>'.
9
10Example
11<audio controls>
12 <source src="horse.mp3" type="audio/mpeg">
13</audio>
1<audio src="/test/audio.ogg">
2<p>Tu navegador no implementa el elemento audio.</p>
3</audio>
1<video src="http://v2v.cc/~j/theora_testsuite/320x240.ogg" controls>
2 Tu navegador no implementa el elemento <code>video</code>.
3</video>
1
2 <audio controls autoplay muted>
3
4 <source src="horse.ogg" type="audio/ogg">
5
6 <source src="horse.mp3" type="audio/mpeg">
7
8 Your browser does not support the audio element.
9
10 </audio>
11