Basic Syntax

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

<video src="" controls>   </video>
  • The src attribute specifies the URL of the video file.
  • The controls attribute adds default video controls (play, pause, volume, etc.).

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:

...

Contact Us