Last updated: 2026-09-12
<video>The VIDEO Element
Embeds a video player with controls, poster image and multiple source formats.
| Category | Links & Media |
|---|---|
| Content Model | Embedded content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </video> tag |
| Status | Standard |
📝 Syntax
<video controls>video content</video>
⚙️ Attributes
This element supports the global attributes plus the following:
| Attribute | Value | Description |
|---|---|---|
src | Video file URL. | |
controls | Shows playback controls. | |
autoplay | Auto-plays (usually needs muted). | |
loop | Loops the video. | |
muted | Starts muted. | |
poster | Poster image URL shown before playback. | |
width | Display width in pixels. | |
height | Display height in pixels. | |
preload | Preload hint: none/metadata/auto. |
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <video> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: poster sets the cover image before playback; mobile autoplay also usually needs muted.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.