NEW
Font size
S
M
L
XL
WorksheetsCSS basics
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.
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 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.
8.
How can you make a numbered list?
a)
<list>
b)
<ol>
c)
<dl>
d)
<ul>
9.
How can you make a bulleted list?
a)
<ol>
b)
<ul>
c)
<list>
d)
<dl>
10.
The style that you are applying to a selector, e.g.
border.a)
Property
b)
Value
c)
Keyword
d)
Length Units
11.
What is this an example of?
/* This is a multi-line comment */
/* This is a multi-line comment */
a)
Syntax
b)
Property
c)
Value
d)
Comment
12.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma (,)
b)
semi-colon (;)
c)
colon (:)
d)
dash (-)
13.
Which is the selector in this CSS?
p {color: red;}
p {color: red;}
a)
p
b)
color
c)
red
14.
What is wrong with this code?
a)
The style sheet <link> statement belongs between <head> and </head>
b)
The style sheet <link> statement belongs between <title> and </title>
c)
The style sheet <link> statement belongs between </head> and <body>
d)
The style sheet <link> statement belongs immediately after the DOCTYPE statement
15.
________ positioning keeps the element in the normal document flow, while ________ positioning takes it out of the normal flow.
a)
relative, absolute
b)
absolute, relative
c)
fixed, static
d)
parallel, universal
Reset
