视频元素
video
音频元素
audio
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>媒体元素学习</title> </head> <body> <!--音频和视频 src:资源路径 controls:控制条 autoplay:自动播放 --> <video src="../resources/video/video.mp4" controls autoplay></video> <audio src="../resources/audio/audio.mp3" controls autoplay></audio> </body> </html>