Certified HTML5 Developer Learning Resources Adding Videos

Learning Resources
 

Adding Videos


The tag defines a container for external (non-HTML) content. (It is an HTML5  tag, invalid in HTML 4, but works in all browsers). The following code fragment can display an MP3 file embedded in a web page:
Example


The tag is invalid in HTML 4. Your page will not validate as HTML 4.
Different browsers have different audio format support.
If a browser does not support the file format, the audio will not play without a plug-in.
If the plug-in is not installed on the users' computer, the audio will not play.
If you convert the file to another formats, it will still not play in all browsers.

NOTE: Using (HTML5) solves the validation problem.



Using The Element
The tag can also define a container for external (non-HTML) content.

The following code fragment can display an MP3 file embedded in a web page.
Example



Different browsers have different audio format support.
If a browser does not support the file format, the audio will not play without a plug-in.
If the plug-in is not installed on the users' computer, the audio will not play.
If you convert the file to another formats, it will still not play in all browsers.

 For Support