Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML: Lesson 5 Images

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What tag is used to add images to web pages?

a)

IMG

b)

DIV

c)

P

d)

A

2.

What does the SRC attribute of the image tag specify?

a)

URL for the image

b)

Color of the image

c)

Size of the image

d)

Shape of the image

3.

What unit of measurement is used to specify the size of images?

a)

Inches

b)

Pixels

c)

Centimeters

d)

Meters

4.

What does the ALT attribute of the image tag define?

a)

Alternative text for the image

b)

Alignment of the image

c)

Animation of the image

d)

Attribute of the image

5.

What happens if only the width attribute is specified for an image?

a)

The image is not displayed

b)

The image is shrunk

c)

The height is adjusted to maintain the shape

d)

The image is stretched

6.

What does the height attribute of the image tag specify?

a)

Color of the image

b)

Size of the image

c)

Shape of the image

d)

URL for the image

7.

What happens if both width and height attributes are specified for an image?

a)

The image is shrunk

b)

The image is stretched

c)

The height is adjusted to maintain the shape

d)

The image is not displayed

8.

What is the result of specifying a width of 100 pixels for an image?

a)

The image is shrunk

b)

The image is not displayed

c)

The image is enlarged

d)

The image is stretched

9.

What is the result of specifying a height of 100 pixels for an image?

a)

The image is enlarged

b)

The image is shrunk

c)

The image is stretched

d)

The image is not displayed

10.

What does the image tag do if the URL for the image is incorrect?

a)

Display nothing

b)

Display a broken image icon

c)

Display the alt text

d)

Display an error message