HTML <video> loop Attribute

❮ HTML <video> tag

Example

<video width="340" height="260" controls loop>
  <source src="video.mp4" type="video/mp4">
  <source src="video.webm" type="video/webm">
  Your browser does not support the video tag.
</video>

Meaning

The loop attribute, if present, specifies that the video should loop.


Standard Syntax

HTML: <video loop>...</video>

XHTML: <video loop="loop">...</video>



Browser Support




Status







Attribute Values

Value Description
loop This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
❮ HTML <video> tag