HTML 5 – Audio & Video
HTML5 introduces built-in media support via the <audio> and <video> elements, offering the emendation of media into HTML documents.
Embedding Audio to the web page
<audio src=”himesh-new-song.mp3″ preload=”auto”>
<p>Your browser does not support the <code>audio</code> element.</p>
*preload used for buffering large files, used in the audio tag
Some Attributes, you may try with <Audio> tag
controls: Displays the standard HTML5 controls for the audio on the
web page.
autoplay: Makes the audio play automatically.
loop: Make the audio repeat (loop) automatically.
Embedding Video to the web page
<video controls>
<source src=”Dangal.mp4″ type=”video/mp4; codecs=dirac, speex”>
Your browser does not support the <code>video</code> element.

author image

About admin

You Might Also Like...

Arrays in PHP – Online Training by Hirdesh Bhardwaj
CSS Selectors

1 Comment

  1. very good read…

Leave a Reply

Your email address will not be published.

Enjoy the tutorial? Please spread the word :)

Follow by Email