HTML Attributes

HTML controls attribute

Requests native playback controls for audio or video. It is a boolean attribute; controls="false" still enables it. Provide accessible alternatives if implementing custom controls. Applicable elements include: <audio>, <video>. Check each element’s value rules. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.

Formal Syntax & Structure

html syntaxhtml
controls

Parameters & Attributes

NameTypeDescription
controlsbooleanRequests native playback controls for audio or video. It is a boolean attribute; controls="false" still enables it. Provide accessible alternatives if implementing custom controls.

Working Example

Example Snippethtml
<audio src="lesson.mp3" controls></audio>

Browser Compatibility

Minimum supported versions across modern rendering engines

Chrome
3
Yes
Edge
12
Yes
Firefox
3.5
Yes
Safari
3.1
Yes
Opera
10.5
Yes
Checked desktop BCD snapshot: controls on video; UI differs. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted.
HTML Living Standard
HTML Reference