使用 标签在 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>
以上就是在html5中,我们如何在网页中嵌入音频?的详细内容。