New media tags in HTML5

New media tags in HTML5

Some new media elements were intoduced in HTML5 where the developer can simply plug and play the media elements by simply using the below tags

<audio> Defines sound content

<video> Defines a video or movie

<source> Defines multiple media resources for <video> and <audio>

<embed> Defines a container for an external application or interactive content (a plug-in)

<track> Defines text tracks for <video> and <audio>

9 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Try share the code with us

may i know what kind of codes you need. can you please tell in detail

<audio src="audio/sample.mp3" autoplay> </audio>


play a simple song

<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
  Your browser does not support the audio tag.


<audio src="data:audio/mpeg,ID3%02%00%00%00%00%..." autoplay> </audio>

well, could you explain more clearly

no ! cant give more detail than this post

can you give an example for tag <embed>

example for embed tag <embed src="ponram_workout.swf">

Some of parameters that can be used along with <embed>

height - Specifies the height of the embedded content

src - Specifies the address of the external file to embed

type - Specifies the MIME type of the embedded content

width - Specifies the width of the embedded content

Leave a Comment

Please sign in to add a comment. Not a member? Join today