HTML5-媒体元素
视频和音频
视频元素
video
音频元素
audio
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>媒体元素</title> </head> <body> <!--音频和视频 controls:控制条 autoplay:自动播放 --> <video src="../res/vido/片头.mp4",controls,autoplay>0</video> <!--音频 controls:控制条 autoplay:自动播放 --> <audio src="../res/audio/音频.mp3",controls,autoplay></audio> </body> </html>