Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <video> loop Attribute

The loop attribute on a <video> tag specifies that the video will play repeatedly.

This will continue until stopped.

Example

#

A loop attribute on a <video> element.
The video will play over and over -- until it is stopped.

<video width="320" height="240" controls loop>
  <source src="/media/movie.mp4" type="video/mp4">
  <source src="/media/movie.ogg" type="video/ogg">
</video>

Using loop

The loop attribute specifies that the video will play repeatedly.

Once the video reaches the end, it jumps to the start and begins all over again.


Syntax

<video loop>

Browser support

Here is when loop support started for each browser:

Chrome
4.0 Jan 2010
Firefox
11.0 Mar 2012
IE/Edge
9.0 Mar 2011
Opera
11.5 Aug 2011
Safari
3.1 Mar 2008

You may also like

 Back to <video>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides