Loading Please Wait...
To embed an audio in HTML document, use <audio> element with <source> element.
<audio> element defines a container for audio content.
<source> element defines the audio source file. We can set more than one <source> element, the browser play the first recognized format.
controls attribute defines the audio controls like play, pause, volume, etc.
If the browser does not support audio element then the text inside <audio> and </audio> will be displayed.
<audio controls>
<source src="audio.mp3" type="audio/mp4">
<source src="audio.ogg" type="audio/ogg">
Your browser does not support the audio tag.
</audio>
To play the audio automatically use the autoplay attribute.
<audio controls autoplay>
<source src="audio.mp3" type="audio/mp4">
Your browser does not support the audio tag.
</audio>
To mute the audio use the muted attribute.
<audio controls autoplay muted>
<source src="audio.mp3" type="audio/mp4">
Your browser does not support the audio tag.
</audio>
The <object> element is used to include objects in HTML documents such as images, Java applets, PDF readers, Flash Players, another HTML document, etc.
<object width="100%" height="500px" data="about.html"></object>
The <embed> element is used to embed objects in HTML documents such as Java applets, PDF readers, Flash Players, another HTML document, etc. It is similar to <object> element except it has benn not a part of HTML specifications until HTML5.
<embed src="about.html">
How you feel about this blog:
Share this blog on:
If you find any error in the turtorials, or want to share your suggestion/feedback, feel free to send us email at: info@lynxsia.com
Contact UsWe are concern with various development process like website design & development, E-commerce development, Software development, Application development, SMS & Bulk SMS Provider, PWA Development, and many more..
Copyright ©
, Lynxsia IT Solutions, All rights reserved