wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSS Review

Total questions: 21

Worksheet time: 11mins

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.
Where in the HTML document is the correct location to insert code to link to your external CSS? 
a)
In the <head> section
b)
In the <body> section
c)
At the very end of the document
d)
At the very beginning of the document
3.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
4.
Select the code below that uses CSS to configure a background color of #000000 for a web page.
a)
body { background-color: #000000; }
b)
body { bgcolor: #000000; }
c)
document { background­-page: #000000; }
d)
None of these
5.
Which is the correct way to format a Font Family for a paragraph?
a)
p { font-face: Arial; }
b)
p { family-font: Arial; }
c)
p { font-family: Arial; }
d)
p { font: Arial; }
6.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
7.
Which CSS code is incorrect?
a)
a {color: blue;}
b)
p {font-size: 10px;}
c)
body {background-color="red";}
d)
img {width: 100%;}
8.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
9.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
10.
Which CSS code centers text?
a)
p {align: center;}
b)
p {text-align: center;}
c)
p {align=center;}
d)
p {center;}
11.
How do I remove the underline from a link using CSS?
a)
a {underline: none;}
b)
a {text-decoration: none;}
c)
a {style: none;}
d)
link {underline: none;}
12.
The code for the comment tag in CSS is
a)
<!-- comment -->
b)
<!-- comment >
c)
/* comment /*
d)
/* comment */
13.
Which CSS code is buggy?
a)
link {color: blue;}
b)
li {background-color: red;}
c)
p {font-size: 10px;}
d)
img {width: 100%;}
14.
A selector (ex: h1{ } ) can only have 1 property
a)
true
b)
false
15.
You should always define a backup font-family in CSS.
a)
True
b)
False
16.
If you want to have more than one declaration in a CSS rule, what character separates them?
a)
comma ,
b)
semi-colon ;
c)
colon :
17.
Which HTML tag is used to define an internal stylesheet?
a)
<script>
b)
<style>
c)
<css>
18.
In CSS p, h1, and ul are examples  of
a)
an element selector
b)
a class selector
c)
an id selector
d)
a psuedo class
19.
#div is an example of
a)
an id selector
b)
a class selector
c)
an element selector
d)
an html element
20.
.div is an example of
a)
an html element
b)
an id selector
c)
a class selector
d)
a pseudo class
21.
Which of these is a CSS property?
a)
background-color
b)
blue
c)
< p >
d)
100px