Additional Attributes

Attributes

Description

Autoplay

Starts playing the video automatically.

Preload

Provides a hint to the browser about the best user experience.

Loop

Automatically loops the video.

height

It sets the height of the video in CSS pixels.

width

It shows the default video controls like play, pause, volume, etc.

Controls

It shows the default video controls like play, pause, volume, etc.

Muted

Mutes the audio.

Poster

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.

Similar Reads

Basic Syntax

To include a video on your webpage, use the following syntax:...

Supported Formats

Three different formats are commonly supported by web browsers – mp4, Ogg, and WebM. The table below lists the formats supported by different browsers:...

Additional Attributes

...

Example Usage of HTML Video

1. Adding Video with Preload...

Conclusion

...

Supported browsers:

...