HTML 5 – Audio & Video

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
Example:
<audio src=”himesh-new-song.mp3″ preload=”auto”>
<p>Your browser does not support the <code>audio</code> element.</p>
</audio>
*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.
</video>

One thought on “HTML 5 – Audio & Video

  1. Hi admin, i must say you have high quality content here. Your blog can go viral.
    You need initial traffic only. How to get it?
    Search for: Mertiso’s tips go viral

Leave a Reply

Your email address will not be published.

Enjoy the tutorial? Please spread the word :)

Follow by Email
Facebook
Facebook
Google+2k
Google+
http://hirdeshbhardwaj.com/2017/07/17/html-5-audio-video/
YouTube31
YouTube