We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


The HTMLMediaElement.controls property reflects the controls HTML attribute, which controls whether user interface controls for playing the media item will be displayed.


var ctrls = video.controls;
audio.controls = true;


A Boolean. A value of true means controls will be displayed.


var obj = document.createElement('video');
obj.controls = true;


Specification Status Comment
HTML Living Standard
The definition of 'HTMLMediaElement.controls' in that specification.
Living Standard No change from HTML5
The definition of 'HTMLMediaElement.controls' in that specification.
Recommendation Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes3.59 Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes Yes Yes Yes ?

See also

Document Tags and Contributors

Contributors to this page: fscholz, erikadoyle, markg
Last updated by: fscholz,