Search code snippets, questions, articles...

Autoplay video on load in HTML

To play video automatically in HTML you can use autoplay attribute to video tag
<!--Add autoplay attribute to video-->
<!-- Sometimes you may also need to add attribute - muted to autoplay video -->
<video src="/path/to/video.mp4" controls autoplay muted></video>
Was this helpful?