What are the various elements provided by HTML 5 for media content ?

  • 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:

Leave a Reply

Your email address will not be published.

You May Also Like

What is Flexbox ?

It is a one-dimensional layout model that has efficient and flexible layouts with distributed spaces among items to control their alignment structure in CSS . It is a layout model…
View Answer

What is JS ?

It is a small piece of javascript program that can add user interactivity to your website. A Script could provide a dropdown menu and generate a pop-up alert box message.…
View Answer

What is the difference between SOAP and REST ?

                  SOAP                    REST It is a protocol. It is an architectural style. SOAP- Simple Object Access Protocol. REST- Representational State Transfer. It can’t use REST because it is a…
View Answer

What is Grid system ?

It is a structure comprising a series of vertical and horizontal lines which intersect and used to arrange content. Is a way of providing a system that designers can work with…
View Answer