Adding multimedia makes a web page more engaging and interactive. HTML provides simple tags for embedding images, audio, and video.
1. Images (<img>)
Displays pictures on a webpage.
src → file path or URL of the image.
alt → alternative text (for accessibility & SEO).
width / height → optional size control.
2. Audio (<audio>)
Embeds sound/music.
controls → adds play/pause buttons.
Multiple <source> elements can be used for compatibility.
3. Video (<video>)
Embeds videos directly.
controls → adds play/pause, volume, fullscreen.
autoplay, loop, and muted are optional attributes.
4. Embedding from Platforms (YouTube, etc.)
Use <iframe> to embed external videos.
Summary
<img> displays images with src and alt.
<audio> and <video> allow adding multimedia with controls for playback.
<iframe> is used for embedding external content like YouTube videos.
Multimedia makes websites interactive, engaging, and user-friendly.
A modern website is not just text, it comes alive with images, sound, and video.