Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML video controls Attribute

HTML

HTML video Tag Reference HTML

Example

With the browser's default controls

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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:


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:


Syntax