1.

What are the New tags in Media Elements in HTML5?

Answer»
  • <audio> - Used for sounds, audio streams, or music, embed audio content without any additional plug-in.
  • <video> - Used for video streams, embed video content etc.
  • <source> - Used for multiple MEDIA resources in media elements, such as audio, video, etc.
  • <embed> - Used for an EXTERNAL application or embedded content.
  • <track> - Used for subtitles in the media elements such as video or audio.
<label> Video: </label> <video width="320" HEIGHT="240" controls> <source src="video.mp4" type="video/mp4"> <track src="subtitles.vtt" kind="subtitles" srclang="en" label="English"> </video> <br> <label> Embed: </label> <embed type="video/webm" src="https://www.youtube.com/embed/MpoE6s2psCw" width="400" height="300"> <br> <label> Audio: </label> <audio controls> <source src="audio.mp3" type="audio/mpeg"> </audio>


Discussion

No Comment Found