wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSS Properties

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.

changing the color of the background can be done using

a)

Background-colour

b)

backGround-color

c)

background-color

d)

all the above

2.

Choose the correct option in styling the button

<button id="btnStart" class="btnClass" onclick="start()">Start</button>

a)

button{

border-radius:50px;

}

b)

#btnClass{

border-radius:50px;

}

c)

.btnStart{

border-radius:50px;

}

d)

all the above

3.

Which of the following is correct about padding?

a)

padding creates space around the html element within the margin

b)

padding creates space around the margin of the html elements

c)

padding can accept negative values

d)

all the above

4.

Which of the following places the components in the center

a)

float:none

b)

vertical-align:middle

c)

text-align:center

d)

all the above

5.

which of the following gives full transparency

a)

opacity:0.5;

b)

background: rgba(200,250,150,0)

c)

background: rgba(200,250,150,0.5)

d)

all the above

6.

Find out the correct comments

a)

<!-- -->

b)

//

c)

/* */

d)

all the above

7.

Empty tags or no ending tags

a)

img

b)

br

c)

h1

d)

input

e)

hr

8.

hides any html element/ component

a)

display:inline

b)

display:inline-block

c)

display:none

d)

all the above

9.

which property shows that items are forced onto one line

a)

flex-wrap: wrap

b)

flex-wrap: nowrap

c)

flex-wrap:wrap-reverse

10.

Expansion of CSS

a)

Cascade style sheet

b)

Cascading Style Sheet

c)

color property style sheet

d)

none