Web Browser

Code Editor
Learn
Site Structure

Add a Video

Awesome! The photo makes the webpage much cooler. What's cooler than a photo? A video!

The HTML video element can add video to a webpage.

<video width="320" height="240" controls> <source src="video-url.mp4" type="video/mp4"> </video>

The video element uses a number of attributes. Let's take a look at them:

  1. width and height: Set the size of the screen that displays the video.

  2. controls: Adds play, pause and volume control.

  3. source src: Sets the URL of the video to play.

  4. type: Specifies different video formats.

Report a Bug
If you see a bug or any other issue with this page, please report it here.