HTML <audio> controls Attribute

❮ HTML <audio> tag

Example

<audio controls>
	<source src="cat.mp3" type="audio/mpeg">
	<source src="cat.ogg" type="audio/ogg">
	Your browser does not support the audio tag.
</audio>

Meaning

The controls attribute is specifies whether or not the browser should present the controls for audio, such as playback, pause, volume, and seeking.


Standard Syntax

HTML: <audio controls>

XHTML: <audio controls="controls">



Browser Support




Status







Attribute Values

Value Description
controls This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
❮ HTML <audio> tag