NEW
Font size
S
M
L
XL
WorksheetsCSS Basics
Total questions: 21
Worksheet time: 9mins
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.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
5.
Which is the value in this CSS?
p {color: red;}
p {color: red;}
a)
p
b)
color
c)
red
6.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
7.
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.
8.
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.
9.
How can you make a numbered list?
a)
<list>
b)
<ol>
c)
<dl>
d)
<ul>
10.
How can you make a bulleted list?
a)
<ol>
b)
<ul>
c)
<list>
d)
<dl>
11.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
12.
What is the function of a title tag?
a)
stores webpage title for browser and search engine results
b)
show server how to index the website
c)
shows meta information about the title
d)
shows server how to title the website
13.
What is the purpose of <!DOCTYPE html>?
a)
provides the web browser with security information
b)
instructs the browser where to look for your CSS files
c)
Allows programmers to link to files in-line
d)
Tells the web browser what language to expect
14.
Which CSS code centers text?
a)
p {align: center;}
b)
p {text-align: center;}
c)
p {align=center;}
d)
p {center;}
15.
Which is the selector in this CSS?
p {color: red;}
p {color: red;}
a)
p
b)
color
c)
red
16.
What property changes the border for an image/table?
a)
border:
b)
border-size:
c)
border-color:
17.
If you want to have more than one declaration in a CSS rule, what character separates them?
a)
comma ,
b)
semi-colon ;
c)
colon :
18.
Jerry wants to insert a line break into his webpage. Which code should he use?
a)
<ul>
b)
<li>
c)
<br>
d)
<h1>
19.
Which tag defines the visible content of a web document?
a)
<head>
b)
<meta>
c)
<title>
d)
<body>
20.
Which item interprets the source code in a web document?
a)
Text editor
b)
Web browser
c)
HTML editor
d)
Web server
21.
Which character is used to indicate an end tag in HTML?
a)
{}
b)
<
c)
/
d)
*
Reset
