Alvin Jorge
Alvin Jorge

Reputation: 87

HTML audio and embed Tag

which is better to use: embed or audio tag? I'm using Adobe Dreamweaver CS5. and i don't know which is the best tag to use for my audio file... please explain the differences, pros and cons.

Upvotes: 1

Views: 3612

Answers (2)

Viral Jain
Viral Jain

Reputation: 1014

Certainly audio tag...

http://www.w3schools.com/html/html5_audio.asp

That's why they introduced it...

It offers audio play/pause, navigation controls, Autoplay; Looping; the best part: NO APP/PLUGIN REQUIRED!!! Lighter pages, as in no plugin.... :)

Only con: Limited audio format support as of now...

Difference: embed tag is used to embed any external object requiring plugin in your page...

audio tag is a dedicated tag for audio inclusion in your page, without plugin

Upvotes: 2

gw0
gw0

Reputation: 1593

Both tags are kind of new, because they were introduced by HTML5 and supported by newest versions of all major browsers. This means that there are probably no compatibility differences between them and it is best to use them in accordance with their semantic meaning and what they were meant to be used for:

Upvotes: -1

Related Questions