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 was not very supportive and don’t support all kinds of file formats. But in HTML5 with 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 plug ins (like Flash).

  • Supported Format’s: .Ogg, .MP3 and .WAV.

    AUDIO Element

VIDEO Element

  • The < Video > element is a used to embed video file on a web page.

  • This solves the dependence on external third party plug ins (like Flash).

  • Supported Format’s: .Ogg, . MP4 and . WebM.

    VIDEO Element
Ebook Download
View all
Learn
View all