#28 HTML Video Control

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

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)

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.

Example

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

Previous: #27 HTML Audio Control

Next: #29 HTML Geolocation API