HTML Video Tag


The HTML <video> tag is used to embed video content in a document, such as a movie clip or other video streams.

Attribute Description
src It is used to set the URL or path from where the video file will get fetched.
height Sets the height of the video player
width Sets the width of the video player
autoplay Specifies that the video will start playing as soon as it is ready
controls Specifies that video controls should be displayed (such as a play/pause button etc).
muted Specifies that the audio output of the video should be muted
Example
<video width="350" height="220" controls autoplay>
    <source src="demo/sample.mp4" type="video/mp4">
</video>
Try it Yourself

Output: