HTML - <audio> Tag


Advertisements


Description

The HTML <audio> tag is used to embed audio in web pages.

Example

Live Demo
<!DOCTYPE html>
<html>

   <head>
      <title>HTML audio Tag</title>
   </head>

   <body>
      <p>Click on Play button...</p>
      <p>(Song: Kalimba which is provided as a Sample Music in Windows)</p>
      
      <audio controls>
         <source src = "/html/Kalimba.mp3" type = "audio/mpeg">
      </audio>
   </body>

</html>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in HTML Attribute Reference

Browser Support

Chrome Firefox IE Opera Safari Mobile
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements
E-Books Store