HTML Video
HTML vedio is used to set a video in a webpage. Before HTML5 a video can be embedded only by using a plugin. At present by using HTML5 you can easily embed a video in a webpage.
But it is supported by the major browsers such as Chrome, Firefox and Opera.
<video> element
To set a video in HTML5 you can use the <video> element.
Example:
<video width="320" height="240" controls>
<source src="video.mp4" type="video/mp4">
This browser does not support the video tag
</video>
<source src="video.mp4" type="video/mp4">
This browser does not support the video tag
</video>
Run Example
<video> autoplay attribute
To start a video automatically you can use autoplay attribute.
Example:
<video width="320" height="240" autoplay>
<source src="video.mp4" type="video/mp4">
This browser does not support the video tag
</video>
<source src="video.mp4" type="video/mp4">
This browser does not support the video tag
</video>
Run Example