Welcome to HTML Images & Multimedia! 🖼️🎥

Understanding Images and Multimedia in HTML

HTML provides the <img> tag to display images on web pages. You can also embed other multimedia elements like videos and audio.

Example of a Working Image

This is a working image of a cat:

Example Image

Example of a Non-Working Image

This image is broken and won't load:

Broken image

Try It Yourself

HTML Images and Multimedia Quiz 🎯

1. What tag is used to display an image in HTML?

<image>
<img>
<src>

2. What attribute is used to specify the image source?

href
src
alt

3. What does the "alt" attribute do for an image?

It provides the image's title.
It provides a description of the image.
It provides the image's dimensions.

4. If an image cannot be displayed, what happens?

The page crashes.
The image shows a broken icon.
The alt text appears in place of the image.

5. How can you control the size of an image?

width and height attributes
src and alt attributes
style and id attributes