The video Element part 2

HTML Fundamentals
HTML5
The video Element
33
2/2
         

Attributes of <video>



Another aspect shared by both the audio and the video elements is that each has controlsautoplay and loop attributes. 

In this example, the video will replay after it finishes playing:
<video controls autoplay loop>
<source src="video.mp4" type="video/mp4">
<source src="video.ogg" type="video/ogg">
Video is not supported by your browser
</video>
Try It Yourself

Currently, there are three supported video formats for the <video> element: MP4, WebM, and OGG.

Comments