The HTML5 video
tag is used to insert a video inside the HTML document.
Let us explain the term used inside the video tag
Source Code
<video src="asd.mp4" height="225" width="400" controls></video>
You can also insert one or multiple video formats inside the video tag. The browser will choose the first one which it will be able to play.
General Syntax
<video height="" width="" controls>
<source src="URL" type="video/ogg" />
<source src="URL" type="video/mp4" />
</video>
Source Code
<video height="225" width="400" controls>
<source src="URL" type="video/ogg" />
<source src="URL" type="video/mp4" />
</video>
Let us see some other video attributes:
Source Code
<video height="" width="" preload="none" controls autoplay loop>
<source src="asd.ogg" type="video/ogg" />
<source src="asd.mp4" type="video/mp4" />
</video>