Skip to main content

html-tags.com

<video>

An embedded video player.

Baseline: Widely available · Media & embedded content

When to use it

With controls, intrinsic width/height, preload='none' or 'metadata', nested sources per format, and a captions track — non-negotiable for speech.

When not to

Never autoplay with sound; muted looping background video still needs prefers-reduced-motion respect.

Key attributes

controls / width / height
preload
none | metadata | auto
poster
preview image
muted / loop / playsinline

Example

<video controls width='320' height='180' preload='none'>
  <source src='/media/intro.webm' type='video/webm'>
  <track kind='captions' src='/media/intro.en.vtt' srclang='en' label='English' default>
</video>
Source — this snippet needs a fuller context to render.

Authoritative references