The HTML <video>
tag is used to embed a video content on the website by containing one or more video sources with <source>
tags.
The <video>
can also use for audio content, however there’s a specific <audio>
element for embedding audio content. It’s recommend to be explicit by using <audio>
tag for audio content, <video>
for video content.
The <video>
tag supports MP4, WebM, and OGG video content.
Demo
<video controls width="100%">
<source src="https://blog.jorcus.com/video.mp4"
type="video/mp4">
Sorry, your current browser doesn't support embedded videos.
</video>
Output
Browser Compatibility
Browser | Chrome | Edge | Firefox | Opera | Safari |
<video> | 4.0 | 9.0 | 3.5 | 11.5 | 3.1 |