当前位置: 首页 > 文档资料 > HTML 入门教程 >

<audio>

优质
小牛编辑
134浏览
2023-12-01

描述 (Description)

HTML

例子 (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>

全局属性 (Global Attributes)

此标记支持HTML Attribute Reference描述的所有全局属性

浏览器支持 (Browser Support)

FirefoxIEOperaSafari移动
YesYesYesYesYesYes