HTML <audio> controls Attribute

❮ HTML <audio> tag


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


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


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