Home › HTML Tutorial › Audio and video
Audio and video
Embed media without plugins.
Use audio and video with the controls attribute and a src file. Add <track> captions for accessibility. Put your own file path in src; this example has none.
Example code
<audio controls src="your-sound.mp3"></audio>
<br><br>
<video controls width="280" src="your-video.mp4">
Your browser does not support video.
</video>