Your browser does not support JavaScript!'

HTML Audio Tag ~ VUSs

Welcome to VUSs, as you guys know. VUSs is all about Computer Science's fundamentals and Tests Preparation.
All published articles are organized in simple, easy, and short English sentences to familiarize the students with computer science.
In that respect today's article is HTML Audio Tag


Today's Topic
HTML Audio Tag






Audio Tag

HTML5 <audio> tag is used to include or embed audio files in to Web pages OR HTML Documents. The audio tag has some most useful attributes which allow the users to control audio playback.

Attributes Of Audio Tag

Attribute Value Description
src File Path SRC attribute specifies the path to the audio file which will be embedded into the web page.
controls Values controls attribute is ued to show the player's controls. If the "controls" attribute is used then it will enable the controls. If we don't use controls attribute, no controls will be shown. Audio tag can be customized by using the Javascript.
autoplay Value Autoplay is used to start audio automatically.
loop Value Loop is used to set the audio loop whether it play again, once it has finished.

Multiple Audio Sources

<audio controls autoplay>
<source src="audio/test-audio.ogg" />
<source src="audio/test-audio.mp3" />
<p>
Browser does not support audio format.
</p>
</audio>
     Output:

Stylish Audio Player

Get free Stylish HTML5 Audio Player for your website or Blog. Here

HTML Tags

Post a Comment

0 Comments

^