<audio>
优质
小牛编辑
133浏览
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)
铬 | Firefox | IE | Opera | Safari | 移动 |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |