Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML video loop Attribute

HTML

HTML video Tag Reference HTML

Example

A video element set to loop:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the loop attribute.

Note: Internet Explorer 8 and earlier IE versions are not supported.


Definition and Usage

The loop attribute is a boolean attribute.

The loop attribute specifies that the video should start playing again when it ends.

If this attribute is set, the video will play in a loop.


Differences between HTML 4.01 and HTML5


Differences between HTML and XHTML

In XHTML, attributes cannot be abbreviated, so the loop attribute must be defined as


Syntax