Search code snippets, questions, articles... Chrome Extension

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>
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool
Was this helpful?
Join Devsheet Ask a Question