Media Elements in HTML5
In HTML5 there are two new tags introduced for media files. Earlier in HTML4.1 there is <OBJECT> used to run any media files which were not very supportive and don’t support all kinds of file formats. But in HTML5 with the introduction of new tags, it’s very easy to run all kind of Audio and Video files with different kinds of formats.
AUDIO Element
- The <Audio> element is used to embed an audio file on a web page.
- This solves the dependence on external third party plugins (like Flash).
- Supported Format’s: .Ogg, .MP3 and .WAV.
VIDEO Element
- The < Video > element is used to embed video files on a web page.
- This solves the dependence on external third party plugins (like Flash).
- Supported Format’s: Ogg, MP4 and. WebM.