HTML video autoplay loop code example

Example 1: html video autoplay

<!--
Video autoplay in html is a boolean attribute, which plays the video automatically when the video gets loaded on web page.
-->

Syntax:
<video autoplay>
  
Example:
<video controls autoplay>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
</video>
  
<!--
I hope it will help you.
Namaste
Stay Safe Stay Home
-->

Example 2: html video loop

<video loop></video>

Example 3: html repeating video

<video controls loop></video>

Example 4: html autoplay loop many videos

<video width="480" controls poster="https://archive.org/download/WebmVp8Vorbis/webmvp8.gif" >
  <source src="https://archive.org/download/WebmVp8Vorbis/webmvp8_512kb.mp4" type="video/mp4">
  <source src="https://archive.org/download/WebmVp8Vorbis/webmvp8.ogv" type="video/ogg">
  <source src="https://archive.org/download/WebmVp8Vorbis/webmvp8.webm" type="video/webm">
  Your browser doesn't support HTML5 video tag.
</video>

Tags:

Html Example