Video Tag

This is a new tag for HTML 5. This tag might not work in older browsers. We need some attributes for this tag, Source, Type, Width ,Height and Control. We need to tell the browser where is the source of the video and the type, what type of video the browser should expect. We must control attribute otherwise we can not play the video properly. The tag is

<video>
</video>

Example

<!DOCTYPE html>
<html>

<head>
       <meta charset="utf-8"  />
       <title>Video Tag</title>
</head>

<body>

           <video width="640" height="360" controls>
           <source src="gameplay.mp4" type="video/mp4">

If you can see this , you need to update your browser.
           </video>

</body>
</html>



We can use some other controls to start auto play when  browser loads and loop to play video over and over again


 <video width="640" height="360" controls autoplay loop>



Just let me know if you have any question