Home >Web Front-end >HTML Tutorial >In HTML5, how can we embed audio in web pages?

In HTML5, how can we embed audio in web pages?

王林
王林forward
2023-09-01 15:17:02985browse

In HTML5, how can we embed audio in web pages?

Use the

Example

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

The above is the detailed content of In HTML5, how can we embed audio in web pages?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete