媒体元素
作者:互联网
# 媒体元素
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>媒体元素学习</title>
</head>
<body>
<!--音频和视频
src:资源路径
controls:控制条
autoplay:自动播放
-->
<video src="https://drive.sijia.fun/?/%E6%88%BF%E6%9D%B1%E7%9A%84%E8%B2%93%20-%20%E3%80%90%E6%98%A5%E9%A2%A8%E5%8D%81%E9%87%8C%E3%80%91MV%20%E6%88%91%E8%AA%AA%E6%89%80%E6%9C%89%E7%9A%84%E9%85%92%E9%83%BD%E4%B8%8D%E5%A6%82%E4%BD%A0.mp4" controls autoplay></video>
<audio src="https://drive.sijia.fun/?/%E8%99%9E%E5%85%AE%E8%99%9E%E5%85%AE%E5%A5%88%E8%8B%A5%E4%BD%95/%E6%9A%97%E6%B6%8C/%E9%BB%84%E8%80%80%E6%98%8E%20-%20%E6%9A%97%E6%B6%8C.mp3" controls autoplay></audio>
</body>
</html>
```
标签:src,媒体,--,元素,controls,html 来源: https://www.cnblogs.com/sijiawork/p/15027111.html