On this page
<video>
Prev: `<figure>` | Up: media | Next: `<table>`
Rel: media, Tables & Media Guide
Ref: MDN Web Docs — <video>
Tags: #public #web #html #elements #media #tier/standard
Summary
Embeds video playback with <source> and <track kind="captions">.
- Implicit ARIA Role:
none - DOM Interface:
HTMLVideoElement - Key Attributes:
src, controls, poster, muted, playsinline
Notes & Best Practices
- Include
controls,poster, and<track kind="captions">for accessibility; browsers only allowautoplaywhenmutedis also set.
Example
<video controls width="640" poster="thumb.jpg">
<source src="demo.mp4" type="video/mp4" />
<track kind="captions" src="demo-en.vtt" srclang="en" label="English" />
</video>
Linked from
Related notes
- tuts/html/elements/media/figure Linked here; links to this page; shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/table Linked here; links to this page; shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media Linked here; links to this page; shared tags: #elements, #html, #media, #web
- tuts/html/elements/tables_and_media Linked here; shared tags: #elements, #html, #media, #web
- tuts/html/elements/media/canvas shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/img shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/marquee shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/picture shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/svg shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/forms/button shared tags: #elements, #html, #tier, #web