wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSS (Text-Font-Box)

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

Which CSS property controls the text size?

a)

font-style

b)

font-size

c)

font-family

d)

font-width

2.

Choose an INCORRECT unit for text size

a)

em

b)

pt

c)

pc

d)

pixel

3.

What is the correct order for Font Shorthand

a)

font: font-weight font-style font-size font-family;

b)

font: font-style font-variant font-family font-size;

c)

font: font-variant font-style font-family font-weight;

d)

font: font-weight font-style font-family font-size;

4.

Lowercase, uppercase, capitalize are examples of value for _______

a)

text-align

b)

text-indent

c)

text-transform

d)

text-emphasis

5.

Identify CSS code to change text color to YELLOW

a)

<div style="background-color:black;color:yellow">

b)

<div style="background-color:yellow;color:black">

c)

<div class="background-color:yellow;color:black">

d)

<div type="background-color:black;color:yellow">

6.

Based on given box properties, what is C?

a)

Padding

b)

Margin

c)

Content

d)

Border

7.

Find the INCORRECT color value for HTML text.

a)

rgb(red,green,blue)

b)

#rrggbb

c)

hsl(hue, saturation, lightness)

d)

color code

8.

Given:

border-width: 10px 20px 30px 40px;

Identify value for right border width.

a)

10px

b)

20px

c)

30px

d)

40px

9.

Select the INCORRECT value for a border-style.

a)

dashed

b)

dotted

c)

groove

d)

straight

10.

How to create the above border?

a)

border-style: double solid dashed dotted;

b)

border-style: solid dashed dotted double;

c)

border-style: double dashed dotted solid;

d)

border-style: dotted solid dashed double;