wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSS Basics

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Code this using CSS:

A green paragraph

a)

p {color:red;}

b)

p {color:green:}

c)

p {color:green;}

d)

p {colorgreen:}

2.

Code this using CSS:

A pink title thats aligned to the center.

a)

H1 {color:pink;

text-align: center;}

b)

h1 {color:pink;

text-align: center;}

c)

li {color:pink;

text-align: center;}

d)

h1 {color:pink;

textalign: center;}

3.

Code this using CSS:

A red sub-header with the font size of 35px.

a)

h2 {color:red;

font-size: 35px;}

b)

p {color:red;

font-size: 35px;}

c)

h2 {color:pink;

font-size;35px;}

d)

h2 {color:red;

font-size: 35px{

4.

Code this using CSS:

A paragraph with the font size of 35px and aligned to the right.

a)

p {fontsize 35px

text-aligned:right;}

b)

p {font-size: 38px;

text-aligned:right;}

c)

h1 {font-size: 35px;

text-aligned:right;}

d)

p {font-size: 35px;

text-aligned:right;}

5.

Code this using CSS:

A paragraph with the font size of 10px and cursive.

a)

p {font-size 10px

font-family:cursive;}

b)

p {fontsize 10px

fontfamily:cursive;}

c)

p {fontsize 20px

font-family:cursive;}

d)

p {fontsize 10px

fontfamily:cursive;}

6.

What does CSS stand for?

a)

Coding Style Sheets

b)

Cascading Style Sheets

c)

Cascading System Sheets

d)

Cascading Style

Systems

7.

What is the difference between HTML and CSS?

a)

HTML codes the style of a webpage. CSS codes the structure of a webpage.

b)

Cascading Style Sheets

c)

HTML codes the structure of a webpage. CSS codes the style of a webpage.

d)

Cascading Style

Systems

8.

p{color:red;}

What is p considered?

a)

Property

b)

Value

c)

Selector

d)

Content

9.

p{color:red;}

What is color considered?

a)

Property

b)

Value

c)

Selector

d)

Content

10.

p{color:red;}

What is red considered?

a)

Property

b)

Value

c)

Selector

d)

Content

11.

What symbol is listed after the property?

a)

:

b)

{

c)

;

d)

}

12.

What symbol is listed after the selector?

a)

:

b)

{

c)

;

d)

}

13.

What symbol is listed after the value

a)

:

b)

{

c)

;

d)

}

14.

in CSS, what is the unit of measurement for font-size?

a)

in

b)

px

c)

ft

d)

mm

15.

What CSS property is used align text?

a)

font-center

b)

text-align

c)

font-size

d)

color

16.

What CSS property is used adjust the font size?

a)

font-center

b)

text-align

c)

font-size

d)

color

17.

What CSS property is used to adjust the font size?

a)

font-center

b)

text-align

c)

font-size

d)

color

18.

What CSS property is used to adjust the font size?

a)

font-center

b)

text-align

c)

font-size

d)

color

19.

What CSS property is used to adjust the color?

a)

font-center

b)

text-align

c)

font-size

d)

color

20.

What CSS property is used to change the font family?

a)

font-family

b)

text-align

c)

font-size

d)

color