HTML <video> loopProperty
Example
Video element set to loop playback:
<video controls loop>
<source src="movie.mp4.html" type="video/mp4">
<source src="movie.ogg.html" type="video/ogg">
Your browser does not support the video tag.
</video>
<source src="movie.mp4.html" type="video/mp4">
<source src="movie.ogg.html" type="video/ogg">
Your browser does not support the video tag.
</video>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the loop attribute.
Note:Internet Explorer 8 and earlier IE versions do not support the <video> tag.
Definition and Usage
The loop attribute is a boolean attribute.
The loop attribute specifies that the video will restart when it ends.
If this attribute is set, the video will play in a loop.
Differences between HTML 4.01 and HTML5
The <video> tag is a new HTML5 tag.
Differences between HTML and XHTML
In XHTML, attribute minimization is not allowed, and the loop attribute must be defined as <video loop="loop">.
Syntax
<video loop>
HTML <video> Tagother extensions