HTML – Media

HTML Audio Tag

HTML audio tag is used to define sounds such as music and other audio clips. Currently there are three supported file format for HTML 5 audio tag.

  1. mp3
  2. wav
  3. ogg
<audio controls>  
  <source src="koyal.mp3" type="audio/mpeg">  
Your browser does not support the html audio tag.  

HTML Video Tag

HTML 5 supports <video> tag also. The HTML video tag is used for streaming video files such as a movie clip, song clip on the web page.

Currently, there are three video formats supported for HTML video tag:

  1. mp4
  2. webM
  3. ogg
<video controls>  
  <source src="movie.mp4" type="video/mp4">  
  Your browser does not support the html video tag.  

Related Articles

Leave A Comment?