PHP前端开发

在HTML5中,我们如何在网页中嵌入音频?

百变鹏仔 3个月前 (09-22) #HTML
文章标签 音频

使用 标签在 HTML5 网页中嵌入音频。您可以尝试运行以下代码来实现 标签 -

示例

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