Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

controls: request browser-provided controls

Provide usable media controls without promising identical controls on every device.

Version: HTML Living Standard

Syntax

<video controls muted></video>

On audio and video, boolean controls asks the browser to provide playback controls. Presence enables the request, even with the textual value false. Controls can include play, pause, volume, seeking and captions, depending on the resource and platform. Removing the attribute does not prevent browser menus or media keys from controlling playback.

The current standard also permits optional image controls on img, but only with a present, nonempty alt. That newer behavior is platform-dependent and is not verified here. Controls do not grant autoplay permission or stop downloading and capture. Keep accessible alternatives when building custom media interfaces.

The fixture plays a muted local canvas stream in video with native controls. Chromium 145 exposes an actual pause control in its accessibility tree. The test checks playback and that native control, not image controls, every device layout or spoken screen-reader output.

Examples

<!doctype html><meta charset="utf-8">
<canvas id="canvas" width="40" height="30"></canvas><video id="video" controls muted width="320" height="180"></video>
<output id="result"></output><script>
const canvas = document.querySelector('#canvas'), video = document.querySelector('#video');
canvas.getContext('2d').fillRect(0, 0, 40, 30);
video.srcObject = canvas.captureStream(1);
video.addEventListener('playing', () => {
  document.querySelector('#result').textContent = 'controls=' + video.controls + '; playing=' + !video.paused;
}, { once: true });
video.play(); // Also usable through the browser's native media controls.
</script>

Result

controls=true; playing=true

The stream contains only a local drawing; camera, microphone and external media are not used.

Sources