Easy Tutorial
❮ Att Q Cite Att Input Value ❯

HTML <video> controls Attribute

HTML <video> Tag

Example

A <video> element with the browser's default controls:


Browser Support

All major browsers support the controls attribute.

Note: Internet Explorer 8 and earlier 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 there are no script controls provided by the author.

The browser controls should include:


Differences Between HTML 4.01 and HTML5

The <video> tag is new in HTML5.


Differences Between HTML and XHTML

In XHTML, attributes cannot be minimized, so the controls attribute must be defined as: <video controls="controls">.


Syntax


❮ Att Q Cite Att Input Value ❯