Easy Tutorial
❮ Av Prop Mediagroup Canvas Linecap ❯

HTML Audio/Video DOM controls Attribute

HTML Audio/Video DOM Reference Manual

Example

Enable controls for a video:


Definition and Usage

The controls attribute sets or returns whether the browser should display the standard audio/video controls.

Standard audio/video controls include:


Browser Support

All major browsers support the controls attribute.

Note: Internet Explorer 8 and earlier versions do not support this attribute.


Syntax

Set the controls attribute:

Return the controls attribute:

Attribute Values

Value Description
true Indicates that controls should be displayed.
false Default. Indicates that controls should not be displayed.

Technical Details

Return Value: Boolean, true false
Default Value: false
--- ---
❮ Av Prop Mediagroup Canvas Linecap ❯