HTML - Tags - <audio>

#9 of 147
audio
Next b
Prev aside

 <html>
 <body>
     <figure>
         <audio>
             <source src="audio/churchill.ogg" type="audio/ogg">
             <source src="audio/churchill.mp3" type="audio/mpeg">
             <p>Your browser does not support the audio element.</p>
         </audio>
         <figcaption>
             Winston Churchill - We shall never surrender
         </figcaption>
     </figure>
 </body>
 </html>
 

The audio element represents a sound clip.

A live example:


Winston Churchill - We shall never surrender

N of

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath