wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basic CSS

Total questions: 15

Worksheet time: 8mins

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.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
3.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
4.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
5.
What is the function of the <p> tag?
a)
Defines a paragraph.
b)
Makes the text purple.
c)
It pushes the text to the right.
d)
Prints the webpage.
6.
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.
7.
How can you make a numbered list?
a)
<list>
b)
<ol>
c)
<dl>
d)
<ul>
8.
How can you make a bulleted list?
a)
<ol>
b)
<ul>
c)
<list>
d)
<dl>
9.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
10.
http://www.google.com is an example of a what?
a)
URL
b)
IP address
c)
Browser
d)
Application
11.

What will the following .content class do?


.content { margin-left: 210px; }

a)

A 210px border to the left

b)

A 210px border to the right

c)

210px padding to the left

d)

210px margin to the left

12.

How can we position an image to the left?

a)

float: left;

b)

align: left;

c)

padding: left;

d)

margin: left;

13.

Choose the correct CSS Class ...

a)

#navbar

b)

*navbar

c)

=navbar

d)

.navbar

14.

How do you change font sizes in CSS?

a)

font-family: 20pt;

b)

font-weight: 20pt;

c)

font-size: 20pt;

d)

font-align: 20px;

15.

Can you make anything using HTML & CSS?

a)

Yes

b)

Not yet

c)

Never