The controls is attribute of audio. which is used for showing media player on browser. It supports only Boolean value. If it is present in audio tag. Media will be shows on screen otherwise not..Controls attribute:
|controls||Boolean||If it is present in audio tag file; music controls will be display on screen.|
Declaration syntax of autoplay attribute in HTML5.
|<audio src="URL" controls >Content</audio>|
<!DOCTYPE html >|
<p><b>Example of controls attributes in HTML5.</b></p>
<audio src="a2.mp3" controls >
Browser does not support audio tag.
The audio tag is only available in HTML5. It is not available in HTML4.01.
Posted on: September 4, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles