List some of media tags available in HTML5.

Media Tags

  • <audio> - It is an inline element that is used to embed sound files into a web page. It is a useful tag if you want to add audio such as songs, or any sound files into your webpage.
  • <video> - It is used to embed video files into a web page. It is a standard way to embed a video into your web page.
  • <source> - It is used to attach multimedia files like audio, video, and pictures. It is used as a container for embedding plug-ins such as flash animations.
  • <embed> - It is used for embedding external applications which are generally multimedia content like audio or video into an HTML document. As you can observe that <audio>, <video> elements contain the <source> element, the <source> tag is used to attach multimedia files.
  • <track> - It specifies text tracks for media components audio and video. It is used to specify subtitles, caption files, or different files containing text, that ought to be visible once the media is taking part in it. Thus it is a simple sectors for the <audio> and <video> elements.


Advantage of Media tag

  • Plugins are no longer required.
  • Speed – anything naturally integrated into a browser will be rendered and executed in a faster fashion than imported third-party.
  • Native (built-in) controls are provided by the browser.
  • Accessibilities (keyboard, mouse) are built-in automatically.