HTML
Example
With the browser's default controls
Try it »
Browser support





All major browsers support the controls attribute.
Note: Internet Explorer 8 and earlier IE versions are not supported.
Definition and Usage
The controls attribute is a boolean attribute.
The controls attribute specifies that the browser should provide playback controls for the video.
If this attribute is set, it specifies that there are no author-defined script controls.
Browser controls should include:
- Play
- Pause
- Locate
- Volume
- Fullscreen toggle
- Subtitles (if available)
- Audio tracks (if available)
Differences between HTML 4.01 and HTML5
Differences between HTML and XHTML
In XHTML, attributes cannot be abbreviated, so the controls attribute must be defined as:
HTML