Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Images in HTML

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.
What color is #FF0000
a)
Orange
b)
Red
c)
Blue
d)
Green
2.
For <img src="#"> to display an image, what must you replace # with?
a)
an image URL
b)
an image anchor tag
c)
the image vector
d)
an image file size
3.
What is the correct syntax for inserting an image?
a)
<image source="untitled.jpg"/>
b)
<img src="untitled.jpg"/>
c)
<src img="untitled.jpg"/>
d)
<img scr="untitled.jpg"/>
4.

alt is short for:

a)

alternative text

b)

alien

c)

alternator

d)

automotive

5.

What is missing from this image tag?


<img="cat.jpeg" alt="cat"/>

a)

h1

b)

h6

c)

.jpeg

d)

src=

6.

What are the reasons that ALT is required in an IMG tag?

a)

An error in the SRC will prevent the image from loading

b)

The ALT text can be voiced by a screen reader

c)

Slow connections may prevent an image from loading

d)

Every tag requires an ALT

7.
Why should the alt attribute be used in an HTML image element?
a)
To find an alternative image if the one you want isn't working
b)
To send the user to another webpage where they might find the right image
c)
It is a brief description of an image if for some reason the user cannot see the image
d)
It allows a user to report an image that isn't working on a website
8.

Can I use an image without giving credit to the website and owner of the photo?

a)

yes

b)

no

9.

What should I change about this tag to change the image that will appear?


<img src="cat.jpeg" alt="cat jumping"/>

a)

img

b)

src

c)

cat.jpeg

d)

cat jumping

10.

Which portion of this tag is the text that will show up if there is a problem with my photo link?


<img src="cat.jpeg" alt="cat jumping"/>

a)

img src=

b)

cat.jpeg

c)

cat jumping

d)

alt=