HTML Media
Video Tag
The <video> tag plays video files from your own site.
Syntax:
<video controls width="640" poster="thumbnail.jpg">
<source src="intro.webm" type="video/webm">
<source src="intro.mp4" type="video/mp4">
<track src="captions-en.vtt" kind="subtitles" srclang="en" label="English">
Your browser does not support video.
</video>posteris the image shown before the video starts.- Several
<source>elements give the browser a choice of formats. <track>adds subtitles, which makes your video accessible.autoplay muted loop playsinlinetogether create a silent background video.