The HTML5 audio Element with audio type setting - HTML CSS HTML

HTML CSS examples for HTML:Audio

Description

The HTML5 audio Element with audio type setting

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head> 
  <meta charset="UTF-8"> 
  <title>The HTML5 audio Element</title> 
 </head> <!--from w ww. j  av  a2  s.  c  om-->
 <body> 
  <audio controls="controls"> 
   <source src="../your.mp3" type="audio/mpeg"> 
   <source src="../your.ogg" type="audio/ogg"> Your browser does not support the HTML5 audio element. 
  </audio>   
 </body>
</html>

Related Tutorials