html媒体元素标签
1、代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>媒体元素学习</title>
</head>
<body>
<!--音频和视频
src:资源路径
controls : 控制条
autoplay :自动播放
-->
<video muted="muted" src="../resources/video/01.mp4" controls="controls" autoplay="autoplay"> </video>
<audio src="../resources/audio/shiyu01.mp4" controls ="controls" autoplay = "autoplay"></audio>
</body>
</html>
运行结果: