wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML & CSS Review

Total questions: 45

Worksheet time: 1hrs 9mins

Name
Class
Date
1.

What is the opening tag for a paragraph?

a)

<p>

b)

</p>

c)

<para>

d)

</para>

2.

Which heading tag will give you the smallest text size?

a)

<h1> </h1>

b)

<h3> </h3>

c)

<h6> </h6>

d)

<h10> </h10>

3.

Select all of the closing tags

a)

<p>

b)

</h1>

c)

</li>

d)

</ul>

e)

<ol>

4.

In the code below, what tags do you need to add to make the list a numbered list?

a)

<ol> </ol>

b)

<ul> </ul>

5.

What does HTML stand for?

a)

Hyper Teachers Marking Language

b)

Hypertext MakeUP Language

c)

Happy Techies Missing Lasagna

d)

Hypertext Markup Language

6.

All of the webpage content goes in between the...

a)

<head> </head>

b)

<h1> </p>

c)

<ol> </ol>

d)

<body> </body>

7.

Which is the proper way to write an h1 tag?

a)

<h1>Hello</h1>

b)

<h1>"Hello

c)

{h1}Hello{/h1}

d)

<h1>Hello<h1>

8.

What correction needs to be made in the code?

a)

line 8 - <p> </p> tags needed

b)

line 8 - <li> </li> tags needed

c)

line 8 - <h6> </h6> tags needed

d)

line 8 <par> </par> tags needed

9.

Which is NOT a CSS property?

a)

font-family

b)

color

c)

text-size

d)

text-align

10.

Which type of brackets are used with CSS?

a)

< >

b)

[ ]

c)

\ /

d)

{ }

11.
Jerry wants to insert a line break into his webpage. Which code should he use?
a)
<ul>
b)
<li>
c)
<br>
d)
<h1>
12.
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" alt ="picture of a frog">

d)
<img ="frog" width="104" height"142">
13.

Annie wants the name of her product to be the main heading at the top of her webpage. Which tag defines the main heading in a web document?

a)
<h3>Product</h3>
b)
<h5>Product</h5>
c)
<h1>Product</h1>
d)
<h6>Product</h6>
14.

What tag defines the beginning of the html language?

a)
<html>
b)
<h1>
c)
<p>
d)
<body>
15.
A properly coded HTML tag will always be found between which two symbols?
a)
( )
b)
{ }
c)
[ ]
d)
< >
16.
Choose the correct tag for the largest heading:
a)
h6
b)
heading
c)
head
d)
h1
17.

CSS stands for

a)

Code Style Sheet

b)

Coding Style Sheet

c)

Cascading Sheet Style

d)

Cascading Style Sheet

18.

What symbol is used to indicate an end tag?

a)

>

b)

/

c)

}

d)

;

19.

Part of a program that does not work correctly.

a)

Moth

b)

Ant

c)

Bug

d)

Fly

20.

How do you adjust the font size on a CSS style sheet?

a)

font-decoration

b)

text-decoration

c)

color

d)

font-size

21.

How do you adjust the background color on a CSS style sheet?

a)

color

b)

border-color

c)

background-color

d)

float

22.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

23.

Select the rule set to make ALL of your content your web page blue and centered.

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

p {

text-align: center;

color: blue;

}

d)

body {

text-align: center;

color: blue;

}

24.

Which CSS property will change the font style of the text?

a)

font-size

b)

text-align

c)

font-famiy

d)

text-decoration

25.
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.
26.
How can you make a numbered list?
a)
<list>
b)
<ol>
c)
<dl>
d)
<ul>
27.
How can you make a bulleted list?
a)
<ol>
b)
<ul>
c)
<list>
d)
<dl>
28.
How do you adjust the background color on a CSS style sheet?
a)
background-color
b)
border-color
c)
color
d)
text-decoration
29.

In Web Design, RGB is the abbreviation for…

a)

Red-Gray-Black

b)

Red-Green-Black

c)

Red-Green-Blue

d)

Red-Gray-Brown

30.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
31.
Which CSS code is incorrect?
a)

a {color: blue;}

b)

p {font-size: 10px;}

c)

body {color="red";}

32.
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); }
33.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
34.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
35.
How do you center text?
a)
text-align: true;
b)
text-align: false;
c)
text-align: center;
d)
text: align center;
36.
What tags will this CSS rule set style?
a)
font-family
b)
h2
c)
h1
d)
color: red
37.
What color will h2 elements be?
a)
#00adad
b)
h2
c)
helvetica
d)
red
38.

What is the purpose of HTML?

a)

To control space and time

b)

To create webpages

c)

To confuse and infuriate users

d)

To provide Webpage security

39.

Which tag is an end tag?

a)

<body>

b)

</body>

c)

<p>

d)

<img>

40.

What symbol should you use to target a class names in css?

a)

#

b)

()

c)

.

d)

class

41.

Kareb wants to begin a new line within a paragraph of text on a webpage. Which code should she use?

a)

<li>

b)

<h1>

c)

<hr>

d)

<br>

42.

What is the correct code for a paragraph in css?

a)

P

b)

<p> </p>

c)

.p

d)

p {

}

43.

I want my headings to be different colors. What should I do?

a)

Assign them a class

b)

You can't do this

c)

Make each heading a different "size"

44.

This is my image tag, but my image won't appear. Why?

a)

it has scr instead of src

b)

the file name is in the wrong spot

c)

.jpg should be capitalized

d)

there needs to be a / at the end

45.

Why won't this navigation link page work?

a)

The href link should be "Foods.html"

b)

The end tag should be <a> not </a>

c)

The "Foods" page hasn't been made active

d)

The link should be <a href = "Foods.html"