NEW
Font size
S
M
L
XL
WorksheetsHTML & CSS Review
Total questions: 24
Worksheet time: 12mins
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.
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
4.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
5.
Which CSS code is incorrect?
a)
a {color: blue;}
b)
p {font-size: 10px;}
c)
body {background-color="red";}
d)
img {width: 100%;}
6.
Which is the selector in this CSS?
p {color: red;}
p {color: red;}
a)
p
b)
color
c)
red
7.
Which is the property in this CSS?
p {color: red;}
p {color: red;}
a)
p
b)
color
c)
red
8.
Every selector in CSS matches a _____ in HTML
a)
tag
b)
property
9.
Which of these rules would select all of the
<h2> elements on a page?a)
h2 { color: rgb(255, 0, 0); }b)
#h2 { color: rgb(255, 0, 0); }c)
<h2> { color: rgb(255, 0, 0); }d)
$h2 { color: rgb(255, 0, 0); }10.
The way we tell our CSS rule which HTML elements to style is by using
a)
Selectors
b)
HTML Tags
c)
Properties
d)
Symbols
11.
What does HTML stand for?
a)
Hypertext Medium Language
b)
Hippo Tries Making Licorice
c)
Hypertext Markup Lingo
d)
Hypertext Markup Language
12.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
13.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
14.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
15.
There simple, easy-to-use programs allow you to enter, edit, save, and print text.
a)
text editor
b)
web browser
c)
domain name
d)
webmaster
16.
The content of the web (such as your pictures, text, links) will show up here.
a)
Head
b)
Body
c)
Style
d)
Folder
17.
Which of the following is the largest heading?
a)
H2
b)
H3
c)
H4
d)
H6
18.
The following tag will show a bulleted list
a)
<ul>
b)
<ol>
c)
<li>
d)
<list>
19.
What symbol should precede hexadecimal color codes?
a)
ampersand
b)
semicolon
c)
number sign
d)
equal sign
20.
Which tag is used to underline text?
a)
<a>
b)
<u>
c)
<b>
d)
<I>
21.
What is the correct syntax for inserting an image?
a)
<image source="untitled.jpg"/>
b)
<img src="untitled.jpg"/>
c)
<src img="untitled.jpg"/>
d)
<img scr="untitled.jpg"/>
22.
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.
23.
to make a comment in HTML you use
a)
<!-- -->
b)
//
c)
/*
d)
#
24.
How do you center text?
a)
text-align: true;
b)
text-align: false;
c)
text-align: center;
d)
text: align center;
Reset
