Skip to the page
html reference · links & media

HTML <video> tag

closing tag
required
void element
no
lives inside
anywhere in <body>
typically holds
fallback text, or one or more <source> tags

Where it goes

Anywhere in <body>. src points at the file, or nested <source> tags offer more than one format.

Example

<video src="clip.mp4" controls></video>

Open this example in the editor →

Common mistakes

  • Forgetting controls. Without it there is no play, pause or volume, and the video cannot be used.
  • Expecting autoplay with sound to work. Browsers block it. Only muted autoplay works reliably.

Related

Updated 24 October 2026. Practice it in the html route, or read more on MDN.