#28 HTML Video Control

HTML Video control allows use to embed video in web page.

Table of content

<video> tag

This tag allows us to add video in an HTML file. controls attribute adds video controls like play, pause, and volume

The height and width attribute use to specify the size of the video to display on web page.

To start a video automatically, use the autoplay attribute

Add muted after autoplay to let your video start playing automatically (but muted)

<source> tag

The <source> element allows you to specify alternative video files which the browser may choose from. The browser will use the first recognized format.


See the Pen video tag by Arpit (@soniarpit) on CodePen.

Previous: #27 HTML Audio Control

Next: #29 HTML Geolocation API

Support CodeSnail

If you appreciate my work, or if it has helped you along your journey. It would mean a lot to me if you could write a message on my wall and share a cup of coffee (or tea) with me.

Buy Me A Coffee
Your subscription could not be saved. Please try again.
Your subscription has been successful.


Subscribe to our newsletter and stay updated.

Leave a Comment