The HTML <video> tag is used to embed a media player which supports video playback into the website.

Video Breakdown

Here is the breakdown of HTML Video.

Video Attributes

srcIt specifies the URL
widthIt specifies the width
autoplayIt specifies that the video will play automatically
controlsIt specifies that the video controls get displayed
heightIt specifies the height
loopIt specifies that the video will start again every time after finish
mutedIt specifies that the audio should be muted
posterIt specifies the image to be shown while the video is downloading
preloadIt specifies how and when the video file should load

Video Example

Below example will demonstrate the basic architecture of HTML Video.

<!doctype html>  
        <title>HTML Comment Example</title>
        <video controls>
            <source src="intro.webm" type='video/webm;codecs="vp8, vorbis"'/>