wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSS Study Guide

Total questions: 21

Worksheet time: 15mins

Name
Class
Date
1.
What does CSS stand for? 
a)
Creative Style Sheets
b)
Cascading Style Sheets
c)
Colorful Style Spread
d)
Computer Style Spread
2.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

3.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

4.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

5.

What color will this element be?

a)

Green

b)

Blue

c)

Red

d)

No color

6.

The stylesheet is used to

a)

code the css page.

b)

link css to the html page.

c)

add css to notepad++

d)

link java script to the html page.

7.

What is the proper CSS format for background color?

a)

back-ground color:orange:

b)

backgroundcolor-orange;

c)

background:color:orange;

d)

background-color:orange;

8.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
9.
Which CSS code centers text?
a)
p {align: center;}
b)
p {text-align: center;}
c)
p {align=center;}
d)
p {center;}
10.

Select the rule set to make all the text in your web page blue and centered.

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

p {

text-align: center;

color: blue;

}

d)

body {

text-align: center;

color: blue;

}

11.

What is the correct HTML for referring to an external style sheet?

a)

<style src="mystyle.css">

b)

<stylesheet>mystyle.css</stylesheet>

c)

<link rel="stylesheet" type="text/css" href="mystyle.css">

12.

Which is the correct CSS syntax?

a)

body {color: yellow;}

b)

body:color=yellow;

c)

{body:color= yellow;}

d)

{body;color: yellow;}

13.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

14.

Finding and fixing problems in an computer program is called:

a)

Bugging

b)

Commenting

c)
Debugging
d)
Indentation
15.

Which of the following sets the color of text in a paragraph?

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

16.

TRUE OR FALSE: All tags require a closing tag.

a)

True

b)

False

17.
Which is the correct code to insert a horizontal line in a webpage?
a)
<hr>
b)
<br>
c)
<h1>
d)
<li>
18.

What brackets do you use in CSS?

a)

< >

b)

{ }

c)

( )

d)

[ ]

19.

Why does the code sometimes turn pink?

a)

there is a bug that needs to be fixed

b)

pink means no problems keep going

c)

pink means there is a header

d)

pink means to put in a paragraph

20.

Is this HTML or CSS in the picture?

a)

CSS

b)

HTML

21.

Which one is the correct syntax for CSS?

a)

property {selector : value}

b)

value {property : selector}

c)

selector {value : property}

d)

selector { property : value}