wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

background

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Which CSS embedded rule is used to assign the location of the image on a web page?

a)

background-position

b)

background-attachment

c)

background-repeat

2.

Which of the following phrases must be added to CSS embedded code to stop the background image from scrolling with the text?

a)

fixed

b)

no-scroll

c)

cover

3.

What word must be added to the code "background-size:" to make the image fill the entire web page background?

a)

cover

b)

fill

c)

replace

4.

Which CSS embedded rule allows the text to scroll but the image to stay still?

a)

background-attachment

b)

background-position

c)

background-repeat

5.

Which line of CSS embedded code is correct to change the background color of the web page to purple.

a)

body{background-color:purple;}

b)

<body style="background-color:purple;>

c)

body{color:purple;}

6.

Which of the following CSS embedded codes will add a background image to the web page.

a)

body {background-image:url("link goes here");}

b)

body{img src="link goes here";}

7.

How to display a background image in the above format:

a)

background-repeat: repeat-x;

b)

background-image: repeat;

c)

background-repeat: horizontal;

d)

background-image: repeat-y;