HTML <video> controlsProperty
Example
A <video> element with browser default controls:
<video controls>
<source src="movie.mp4.html" type="video/mp4">
<source src="movie.ogg.html" type="video/ogg">
Your browser does not support the video tag.
</video>
<source src="movie.mp4.html" type="video/mp4">
<source src="movie.ogg.html" type="video/ogg">
Your browser does not support the video tag.
</video>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the controls attribute.
Note:Internet Explorer 8 and earlier IE versions do not support the <video> tag.
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 no script controls set by the author exist.
Browser controls should include:
- Play
- Pause
- Positioning
- Volume
- Toggle Fullscreen
- Subtitles (if available)
- Audio tracks (if available)
Differences between HTML 4.01 and HTML5
The <video> tag is a new tag in HTML5.
Differences between HTML and XHTML
In XHTML, attribute minimization is not allowed; the controls attribute must be defined as: <video controls="controls">.
Syntax
<video controls>
HTML <video> Tagother extensions