Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Review

Total questions: 27

Worksheet time: 14mins

Name
Class
Date
1.

What is the function of the div tag?

a)

To define a section of an HTML page

b)

To group a block of elements together to format them with CSS

c)

To efficiently apply the same style to several different elements

d)

All of the above

2.

Which of the following correctly uses div to style multiple elements the same way?

a)

<div class="intro">

<h2>Welcome</h2>

<p>Hi, welcome to my page.</p>

</div>

b)

<div>

<h2 class="intro">Welcome</h2>

<p class="intro">Hi, welcome to my page.</p>

</div>

c)

<div>

.intro{

font-size: 16px;

font-style: italic;

}

<h2>Welcome</h2>

<p>Hi, welcome to my page.</p>

</div>

d)

<h2 div class="intro">Welcome</h2>

<p div class="intro">Hi, welcome to my page.</p>

3.
Karen 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>
4.
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">
5.
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>
6.
A properly coded HTML tag will always be found between which two symbols?
a)
( )
b)
{ }
c)
[ ]
d)
< >
7.
When using a text editor, what file extension(s) must be used when saving as a web document?
a)
txt
b)
html or htm
c)
doc
d)
css
8.
Which line of code correctly creates a link to Amazon's website?
a)
<a ref=http://www.amazon.com>Amazon
b)
<href=http://www.amazon.com>Amazon<a>
c)
<a href="http://www.amazon.com">Amazon
d)
<a href="http://www.amazon.com">Amazon</a>
9.
Between which paired tags would the visible content of a webpage be displayed?
a)
<html></html>
b)
<head></head>
c)
<body></body>
d)
<title></title>
10.

HTML stands for

a)

Hyper Text Marker Language

b)

Hyper Text Marker Lingo

c)

Hyper Text Markup Language

d)

Hyper Text Markup Lingo

11.
How do you tell the computer what the link's source is?
a)
href=""
b)
src=""
c)
link=""
d)
source=""
12.

What tags are exclusively used for html?

a)

<>

b)

{}

c)

()

d)

[]

13.

How do you insert an image into your webpage with HTML?

a)

<img = "" alt=""/>

b)

<img src="" alt=""/></src>

c)

<image src = "" alt=""//>

d)

<img = "" alt=""/></img>

14.

What code is used for an ordered list?

a)

<ul> </ul>

b)

<ol> </ol>

c)

<list> </list>

d)

<p> </p>

15.

What code is used to make a bulleted list?

a)

<p> </p>

b)

<ol> </ol>

c)

<ul> </ul>

d)

<list> </list>

16.

what code is used to make a hyperlink?

a)

<hyperlink> </hyperlink>

b)

<link>

c)

<p> </p>

d)

<a> </a>

17.

In order to link page one to page two: Which code is correct?

a)

<a href="page1.html" > Page 1</a>

b)

{a href="page1.html"} Page1{/a}

c)

<img src=Page1.jpg>

d)

<link rel"page1">

18.

Which of the following codes starts a set of HTML code?

a)

<html>

b)

<doctype html>

c)

<!DOCTYPE HTML>

d)

<doctype><html>

19.

Which of the following symbols indicates an ending tag in HTML?

a)

;

b)

/

c)

<>

d)

!

20.
Which heading tag is the largest in size?
a)
<h1>
b)
<h2>
c)
<h3>
d)
<h4>
21.
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.
22.
Which tag is used to create a hyperlink?
a)
<a>
b)
<u>
c)
<b>
d)
<i>
23.
Which tag is used to add a picture to a web-page?
a)
<graphic>
b)
<img>
c)
<pic>
d)
<picture>
24.
What does www stand for?
a)
width website web
b)
web world while
c)
web weld with
d)
world wide web
25.
Any content that is visible on your web page should go between these tags.
a)
<html></html>
b)
<style></style>
c)
<body></body>
26.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>

27.

Which tag goes above the <body> and has the <title> and <link> tags within it?

a)

<body>

b)

<html>

c)

<head>

d)

<title>