Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML audio controls attribute

HTML

HTML audio Tag Reference HTML

Example

With the browser's default controls

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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:


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


Syntax