Media in HTML5

In HTML5 there are many types of multimedia in there different formats. It may any which you can see and listen in your daily life routine. For example images, music, sound, videos, records, films, animations, and more. Here in web development, the web pages also consists on these multimedia.

Video Formats

Sr.No Format Description
1 .avi This (Audio Video Interleave) is most commonly used in videos but this is not supported in web browsers.
2 .wmv This (Windows Media Video) is same case as in .avi use, but not in web browsers.
3 .mov This is most common video format which is popular in apple devices but supported in web browsers.
4 .ogg This is also a common video format which is supported both in HTML and HTML5.
5 .webm This is another common format in videos which also supported both in HTML and HTML5.
6 .mp4 This is most famous and commonly used format in videos which most popular in YouTube.

Audio Formats

Sr.No Format Description
1 .mp4 .mp4 is used both in audio and video.
2 .mp3 .mp3 format is most popular format in music due his amazing functionalities.
3 .ogg This is another format for music. This is also supported in HTML and HTML5.
4 .wav This is another common format of audio format which supported both in HTML and HTML5.
5 .aac This (Advanced Audio Coding) is used on apple devices especially and not supported in web browsers.
6 .wma This is most famous in Microsoft devices but not supported in web browsers

Attributes of Video tag.

Sr.No Attribute Description
1 autoplay This attribute is used for automatic starts of video when the browser stop loading.
2 autobuffer This attribute used for automatic starts buffering a video.
3 controls This attribute is used for show and allow the user to use control of the video.
4 height This attribute is used to specify the height of the video.
5 loop This attribute is used to allow a video to automatically seek back to the start after reaching at the end.
6 src This attribute is used embed a url.
6 width This attribute is used to specify the width of a video.

Attributes of Audio tag.

Sr.No Attribute Description
1 autoplay This attribute is used for automatic starts of audio when the browser stop loading.
2 autobuffer This attribute used for automatic starts buffering a Audio.
3 controls This attribute is used for show and allow the user to use control of the Audio.
5 loop This attribute is used to allow a Audio to automatically seek back to the start after reaching at the end.
6 src This attribute is used embed a url.









The Best

Comment here

If you have any query, if you want to know something about any of technical course related to computer science field, if you have any suggestion about relevant to uploaded content or if you anything wrong here (any mistake in content) than please contact us. Keep in mind, comment should be according to community guidelines.


ads