How to add video and audio in HTML5

Answer

Like below we can add video in html5

<video width="320" height="240" controls="controls">
  <source src="pcds.mp4" type="video/mp4" />
  <source src="pcds.ogg" type="video/ogg" />
  </video>

And audie like this
<audio controls="controls">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mpeg" />
  </audio>

All html5 Questions

Ask your interview questions on html5

Write Your comment or Questions if you want the answers on html5 from html5 Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---