How to add video and audio in HTML5?

Answer Posted / ramya gurrala

we can add audio and video using <audio>,<video> tags.

<audio controls>
<source src="Amma Amma -MP3songssp.com.mp3" type="audio/mpeg'/>
</audio>

we will control attribute because it will have play,stop and volume.

where as in the source,we will add the path of our source file.
In type we will add the type pf file like mp3,mp4,mpeg etc..



Similarly we will add the video file

<video controls>
<source src="waiting for tonight -youtube.com" type="video/MP4/"
</video>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the browser determine where to place positioned elements?

1733


What is gradient?

485


How can you set an image as a background on web pages?

455


Explain what is a Dreamweaver Template?

497


What are the advantages of a web application?

473






How can we make each word in a text start with a capital letter?

463


What are the characteristics of web application?

433


How many h1 tags can you have on a single web page? Does it even matter?

487


What is a template design?

457


Is gmail a web application?

425


What the use of Canvas Element in HTML5?

1022


What’s the contrast between quirks mode and standard mode?

492


How can you integrate css file to your webpage?

464


What is an example of a web application?

429


Explain how can you set an image as a background on web pages?

484