0% found this document useful (0 votes)
98 views1 page

HTML Multimedia Notes

The document provides an overview of multimedia on the web, including various formats for audio and video such as .wav, .mp3, .mp4, and .avi. It includes examples of HTML code for embedding video and audio elements, demonstrating features like autoplay and controls. Common formats recommended for web use include MP4 for video and MP3 for audio.

Uploaded by

Meera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views1 page

HTML Multimedia Notes

The document provides an overview of multimedia on the web, including various formats for audio and video such as .wav, .mp3, .mp4, and .avi. It includes examples of HTML code for embedding video and audio elements, demonstrating features like autoplay and controls. Common formats recommended for web use include MP4 for video and MP3 for audio.

Uploaded by

Meera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

HTML Multimedia - Notes and Examples

HTML Multimedia: Audio and Video

Multimedia on the web is sound, music, videos, movies, and animations.

What is Multimedia?
Multimedia comes in many different formats. It can be almost anything you can hear or see, like images, music, sound,
videos, records, films, animations, and more.

Multimedia Formats
Multimedia files have formats and different extensions like: .wav, .mp3, .mp4, .mpg, .wmv, and .avi.

Common Video Formats


MP4, WebM, and Ogg are supported by HTML. MP4 is recommended by YouTube.

Common Audio Formats


MP3 is best for compressed recorded music.

HTML <video> Example:


<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>

Autoplay Video:
<video width="320" height="240" autoplay muted>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>

HTML <audio> Example:


<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

Autoplay Audio:
<audio controls autoplay muted>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

You might also like