<?xml version="1.0" encoding="utf-8"?>

The <video> tag

The <video> tag

We use the HTML <video> element for showing a video on a web page. Like the <img> tag, the <video> tag requires the src attribute to contain a link to the video source. It also includes properties that set the width and height of the video box. Unlike the <img> tag, the <video> element requires both start and end tags.[1]

Pro Tip: Insert the text "Video not supported" between the start and end video tags. This text will only show up if your browser cannot load the video.

Improve your UX & Product skills with interactive courses that actually work