HTML
Example
With the browser's default controls
Try it »
Browser support





Internet Explorer 9+, Firefox, Opera, Chrome, and Safari 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.
If the attribute is present, it specifies how the audio controls are displayed.
Audio/video controls include:
- Play
- Pause
- Progress bar
- Volume
Differences between HTML 4.01 and HTML5
Differences between HTML and XHTML
In XHTML, shorthand is not allowed for this attribute; the controls attribute must be defined as
HTML