HTML之媒体元素
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>媒体元素测试</title> 6 </head> 7 <body> 8 <!-- 9 src :资源路径 10 controls:控制条 11 autoplay:自动播放 12 13 --> 14 15 <!-- 16 17 video:视频文件 18 audio:音频文件 19 20 --> 21 <video src="../css/test.mp4" controls autoplay></video> 22 23 <audio src="../css/test.mp3" controls autoplay></audio> 24 </body> 25 </html>