Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSS QUIZ NO. 5

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which is the value in the CSS code below? h1 {border:29px solid red}

a)

h1

b)

{ }

c)

border

d)

29px solid red 

2.

Which CSS code creates a white and dotted styled border? 

a)

h3 {border: 10px white pink;} 

b)

h3 {border: 10px dotted gold;} 

c)

h3 {border: 10px white dotted;} 

d)

h3 {border: 10px dotted white;} 

3.

How do you insert a comment in CSS? 

a)

//this is a comment

b)

/*this is a comment */

c)

//this is a comment//

d)

‘this is a comment’ 

4.

What is the correct Borders shorthand property?

a)

Border: 5px solid red;

b)

Border-color:red;

c)

brder;blue 

d)

border: color red 

5.

Which of the following property sets whether the table borders are collapsed into a single border or separated? 

a)

Border

b)

Collapse

c)

table-border

d)

border-collapse 

6.

Which of the following property is used to change the width of table? 

a)

table

b)

width

c)

resize

d)

table-width

7.

Which of the following property is used to align the text in a table? 

a)

Text

b)

align

c)

text-align

d)

align-text

8.

Which property can be used to give a background color to an element? 

a)

Background-color

b)

Backgrounds-color

c)

back-color 

d)

color-background 

9.

Which of the following is the correct element to add the image ‘img.png’ to its background. 

a)

Background-image: “img.png”

b)

Background-image: url(“img.png”)

c)

background-image: url(img.png)

d)

image: url(img.png) 

10.

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

d)

fixed