HTML <video> controls attribute

Definition and Usage

controls This is a boolean attribute.

When this attribute is present, it specifies that video controls should be displayed.

The video controls should include:

  • Play
  • Pause
  • Seek
  • Volume
  • Full-screen Switch
  • Subtitles (if available)
  • Track (if available)

Example

The <video> element with browser default controls:

<video controls>
  <source src="shanghai.mp4" type="video/mp4">
  <source src="shanghai.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

Try It Yourself

Syntax

<video controls>

Browser Support

The numbers in the table indicate the first browser version to fully support this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
4.0 9.0 3.5 3.1 11.5