• There are lot of new elements are added which provides some extra functionality to create dynamic and attractive website in HTML5.
  • It can make your code quick and easy with the help of these elements.

Here, there are five media element tag is used for HTML5:

<audio>:

  • This tag is used to embed sound files into a web page, and it is an inline element.

Sample Code:

Output:

<video>:

  • This element tag is used to embed video files into a webpage.

<source>:

  • This tag is used to attach multimedia files like pictures, video, and audio.

Output:

<track>:

  • This tag specifies text tracks for media components like video and audio.

Output:

<embed>:

  • This tag is used for embedding external applications which are generally multimedia content like video or audio through HTML document.

Output:

Categorized in: