How to completely hide controls with the HTML5 video element?

Spread the love

To completely hide controls with the HTML5 video element, we remove the controls attribute.

For instance, we write

<video width="300" height="200" autoplay="autoplay">
  <source src="example.mp4" type="video/mp4" />
</video>

to remove the controls attribute from the video element to hide the video controls.

Leave a Reply

Your email address will not be published. Required fields are marked *