HTML <video> controls Attribute

❮ HTML <video> tag


<video width="340" height="260" controls>
  <source src="video.mp4" type="video/mp4">
  <source src="video.webm" type="video/webm">
  Your browser does not support the video tag.


The controls attribute is set to specifies whether or not the browser should present controls for video, such as playback, pause, volume, and seek.

If not present, no controls will be shown and it will be up to the developer to script the control of the <video> element.

Standard Syntax

HTML: <video controls>

XHTML: <video controls="controls">

Browser Support


Attribute Values

Value Description
controls This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
❮ HTML <video> tag