Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PGAS W3 5

Total questions: 17

Worksheet time: 9mins

Name
Class
Date
1.

The opacity property specifies the opacity/________ of an element.

a)

style

b)

transparency

c)

size

d)

color

2.

Opacity can take a value from _____ to _____.

a)

0 to 1

b)

1 to 10

c)

-1 to 1

d)

0 to 10

3.

What is missing below to add a background-image?

body{

background-image: _____("picture.jpg");

}

a)

html

b)

img

c)

url

d)

background

4.

All the margin properties can have the following values. Which one is missing?

auto, length (px, pt, cm), ____, inherit

a)

basic

b)

%

c)

parent

d)

calculated

5.

What is the order of values in the following property?

margin: 25px 50px 75px 100px;

a)

top, bottom, left, right

b)

top, left, bottom, right

c)

top, right, bottom, left

d)

right, bottom, left, top

6.

Padding is used to create space ________________, inside of any defined borders.

a)

around separate elements

b)

around div tags

c)

between borders

d)

around an element's content

7.

Which directly wraps the content?

a)

padding

b)

border

c)

margin

8.

_________________ goes around the padding and content.

a)

padding

b)

border

c)

margin

9.

_____________ clears an area outside the border and is transparent.

a)

padding

b)

border

c)

margin

10.

Which will correctly put a line through text?

a)

text-decoration-line: through;

b)

text-decoration-line: line-through;

c)

text: line-through;

d)

textdecorationline: through;

11.

What are the five generic font families?

a)

serif, sans-serif

b)

monospace

c)

cursive, fantasy

d)

helvitica

e)

times new roman

12.

Always end a font list with __________.

a)

times new roman

b)

google imported font

c)

generic font family

d)

anything you want

13.

What does the following do?

a:link{

color: red;

}

a)

a link the moment it is clicked, will be red

b)

a normal, unvisited link will be red

c)

a link that the user has visited will be red

d)

a link ,when the user mouses over it, will be red

14.

What does the following do?

a:visited{

color: red;

}

a)

a link the moment it is clicked, will be red

b)

a normal, unvisited link will be red

c)

a link that the user has visited will be red

d)

a link ,when the user mouses over it, will be red

15.

What does the following do?

a:active{

color: red;

}

a)

a link the moment it is clicked, will be red

b)

a normal, unvisited link will be red

c)

a link that the user has visited will be red

d)

a link ,when the user mouses over it, will be red

16.

What does the following do?

a:hover{

color: red;

}

a)

a link the moment it is clicked, will be red

b)

a normal, unvisited link will be red

c)

a link that the user has visited will be red

d)

a link ,when the user mouses over it, will be red

17.

Which of the following is not one of the 5 different position values?

a)

static

b)

relative, absolute

c)

fixed

d)

sticky

e)

perm