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.
Web pages often contain multimedia elements of different types and formats.
1. Image using <img> tag
HTML
• This line uses the <img> tag to embed an image (pic_trulli.jpg) into the webpage. It specifies the width as 300 pixels and height as 200 pixels.
•The alt attribute provides alternative text for accessibility.
2. Audio using <audio> tag
HTML
• This line uses the <audio> tag to embed an audio file (audio.mp3) into the webpage. The controls attribute adds playback controls to the audio player.
• The <source> tag specifies the audio source and its type.
The text inside the <audio> tag provides a fallback message for browsers that do not support the <audio> tag.
3. HTML snippet using <iframe> tag
HTML
• This line uses the <iframe> tag to embed an HTML file (snippet.html) into the webpage. It specifies the width as 500 pixels and height as 200 pixels.
• <iframe> is widely supported and commonly used for embedding external content.
4. Video using <video> tag
HTML
• This line uses the <video> tag to embed a video file (video.mp4) into the webpage. It specifies the width as 400 pixels and height as 300 pixels.
• The controls attribute adds playback controls to the video player.
• The <source> tag specifies the video source and its type.
• The text inside the <video> tag provides a fallback message for browsers that do not support the <video> tag.