源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> 你的浏览器不支持audio标签 </audio> <p><strong>Note:</strong> IE8和早期版本不支持audio标签</p> </body> </html>
运行结果