wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSS Quiz 2

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

The following is not a part of 'box model'

a)

content

b)

height

c)

margin

d)

padding

2.

Increase the size of a text in html

a)

text-size

b)

font-height

c)

text-height

d)

font-size

3.

Which of these combinations will have the highest specificity for inner div tag?

<div class = 'div1'>

<div class ='div2'>

Hello!

</div>

</div>

a)

.div2{

/* some style*/

}

b)

div{

/* some style*/

}

c)

.div1.div2{

/* some style*/

}

d)

.div1 .div2{

/* some style*/

}

4.

<b></b> tag behaviour can be achieved using which property in CSS?

a)

text-decoration

b)

font-style

c)

font-weight

d)

font-bold

5.

Which of these is a invalid value for justify-content property

a)

space-around

b)

space-between

c)

space-interior

d)

space-evenly

6.

Default value of flex-direction

(a)  

7.

Invalid value for transform property

a)

skew

b)

scale

c)

translate

d)

None of the above

8.

align-items property is used to style contents along which axis?

(a)  

9.

Which of these is an invalid property of grid?

a)

grid-template-rows

b)

grid-template-lines

c)

grid-template-columns

d)

grid-template-areas

10.

property to give space between columns

(a)