如何在 HTML5 中將音訊嵌入網頁?
在 HTML5 中使用 <audio> 標籤將音訊嵌入網頁。你可以嘗試執行以下程式碼來實現 <audio> 標籤 -
示例
<!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>
廣告