Audio and Video
The <audio> and <video> tags play media files directly in the browser.
Add the controls attribute to show play, pause, and volume buttons. Use the src attribute to point to the media file.
You can place text between the open and close tags as a fallback message for older browsers.
<video src="movie.mp4" controls width="320"></video>
<audio src="sound.mp3" controls></audio>
Try it yourself
Loading editor…