wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

BT CSS

Total questions: 16

Worksheet time: 9mins

Name
Class
Date
1.

Default value of flex-direction

(a)  

2.

Increase the size of a text in html

a)

text-size

b)

font-height

c)

text-height

d)

font-size

3.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
4.

<p style="background-color:red">

a)

inline style

b)

embedded style

c)

external style

d)

internal style

5.

<p style="background-color:red">

a)

inline style

b)

embedded style

c)

external style

d)

internal style

6.

how many types of CSS

a)

1 type

b)

2 types

c)

3 types

d)

4 types

7.
Which of the following is a CSS property? 
a)
background-color: 
b)
body
c)
lightblue;
d)
{ } 
8.
What unit of measurement does CSS use for size?
a)
px
b)
em
c)
%
d)
All work
9.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
10.

What are the two options for flex-direction?

a)

row

b)

vertical

c)

column

d)

horizontal

11.

Change the border size of the body or image

a)

border-style

b)

border-width

c)

border-color

d)

width

12.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
13.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
14.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
15.

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*/

}

16.

The following is not a part of 'box model'

a)

content

b)

height

c)

margin

d)

padding