Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

How to add video in HTML5 ?

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

In This article, we will define how to add video content using a <video> element in the document. Before HTML5 came into existence, videos could only be played in a browser using a plugin like flash, but after the release of HTML5, adding a video to a web page is easy as adding an image. The HTML5 “video” element specifies a standard way to embed a video in a web page. There are three different formats that are commonly supported by web browsers – mp4, Ogg, and WebM. The table below lists the formats supported by different browsers:


<video src="" controls></video>


<!DOCTYPE html>
        Define a Video or move?
        HTML5: How to define 
        a Video or Movie?
        Adding Video on my webpage
        <video width="400" height="350" controls>
            <source src="myvid.mp4" type="video/mp4">
            <source src="myvid.ogg" type="video/ogg">


Supported Browsers:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari


My Personal Notes arrow_drop_up
Last Updated : 29 May, 2020
Like Article
Save Article
Similar Reads
Related Tutorials