HTML Media

HTML media is used for displaying audio, video, sound, animation etc. in the webpage. There are many different formats of HTML media. It contains anything you can hear or see. They can be music, sound, images videos, records, films, animations etc.


Browsers

Media files are supported by the major browsers. Various formats can be supported by the browsers and some formats need additional support to work in the browsers.


Formats

Media files have different types. To find the type of the files the easiest way to look at the file extension. They can be in .mp3, mp4, .wmv, .wav, swf, .mpg and .avi.

There are some common vedio formats:

Formats File extensions Browser support
MP4 .mp4 Supported by all HTML5 browsers
WebM .webm Supported by HTML5
Ogg .ogg Supported by HTML5
MPEG .mpg
.mpeg
supported by all browsers but not supported by HTML5
AVI .avi not supported by browsers
WMV .wmv not supported by browsers
WMV .wmv not supported by browsers
Flash .swf
.flv
often requires plug-in to supports browsers


There are some common audio formats:

Formats File extensions Browser support
MP3 .mp3 Supported by all HTML5 browsers
WAV .wav Supported by HTML5
Ogg .ogg Supported by HTML5
AAC .aac not supported by browsers
WMA .wma not supported by browsers
RealAudio .rm
.ram
not supported by browsers
MIDI .mid
.midi
not supported by browsers