HTML video loop properties
Examples
Set to loop the video elements:
<video controls loop>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
您的浏览器不支持 video 标签。
</video>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
您的浏览器不支持 video 标签。
</video>
try it"
Browser Support
All major browsers support loop property.
Note: Internet Explorer 8 and earlier versions of IE do not support the <video> tag.
Definition and Usage
loop property is a boolean (Boolean) property.
loop attribute specifies when to start playing again after the video ends.
If this property is set, then the video will loop.
Differences between HTML 4.01 and HTML5
<Video> tag is the new HTML5 tags.
The difference between HTML and XHTML
In XHTML, the property is not allowed shorthand, loop attribute must be defined as <video loop = "loop">.
grammar
<video loop>
HTML <video> tag