Additional Attributes
Attributes |
Description |
---|---|
Starts playing the video automatically. |
|
Provides a hint to the browser about the best user experience. |
|
Automatically loops the video. |
|
It sets the height of the video in CSS pixels. |
|
It shows the default video controls like play, pause, volume, etc. |
|
It shows the default video controls like play, pause, volume, etc. |
|
Mutes the audio. |
|
Displays an image preview before video loading. |
HTML Video
The <video> element in HTML allows you to embed video content directly into web pages. It supports various video formats, including MP4, WebM, and Ogg. In this guide, we’ll learn about the key features of HTML5 video. video and audio tags are introduced in HTML5.