wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Basics

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What does HTML stand for??

a)

Home Training Metric Length

b)

Homogenous Technical Support

c)

Hype Tense Microsoft Level

d)

Hyper Text Markup Language

2.

Which set contains all of the DEFAULT tags needed to create a webpage?

a)

<!DOCTYPE html>

<html>

<head>

</head>

<body>

<main>

</main>

</body>

</html>

b)

<html>

<head>

</head>

<body>

</body>

</html>

c)

<!DOCTYPE html>

<html>

<head>

</head>

</html>

d)

<!DOCTYPE html>

<html>

<head>

</head>

<body>

</body>

e)

<!DOCTYPE html>

<html>

<head>

<title>

</title>

</head>

<body>

</body>

</html>

3.

Choose the correct HTML element for the largest heading:

a)

<head>

b)

<h1>

c)

<heading>

d)

<h6>

4.

<p> is the opening tag for a _____________

a)

page

b)

paragraph

c)

preorder

d)

period

5.

What defines the beginning and ending of the visible part of a webpage?

a)

<head> main part of the document </body>

b)

<body> main part of the document </html>

c)

d) </body> main part of the document <html>

d)

<body> main part of the document </body>

6.

What is the correct syntax for defining a hyperlink in HTML?

a)

<a href=”url”> Link text </a>

b)

<a href=”url”> Link text <a>

c)

<a=”url”> Link text <a>

d)

<ref=”url”> Link text <a>

7.

Which character is used to indicate an end tag?

a)

!

b)

#

c)

/

d)

\

8.

How can you make a list that has no particular order?

a)

<ol> </ol>

b)

<ul> </ul>

c)

<ol> <li>

d)

<li> </ul

9.

You need a closing tag for an image without text

a)

True

b)

False

10.

Which of the following contains a nested list

a)

<ul>

<li>Apples</li>

<li>Cookies</li>

<li>Milk</li>

</ul>

b)

<ul>

<li>Apples</li>

<li>

Cookies

<ul>

<li>Chocolate Chip</li>

<li>Peanut Butter</li>

</ul>

</li>

<li>Milk</li>

</ul>

11.

The "href" of an anchor tag and the "src" of an image tag are both examples of an

(a)  

12.

Where does the content of the <title> element show up in the browser?

a)

At the top of the page.

b)

In the browser tab.

c)

It's metadata, so it doesn't show up.

d)

At the bottom of the page.

13.

What tag adds an image to the page?

a)

<image>

b)

<pic>

c)

<img>

14.

Which of the following are inline elements?

a)

<span>

b)

<p>

c)

<h1>

d)

<em>

e)

<div>

15.

"/images/portrait.png" is an example of a(n) _______ url.

a)

relative

b)

absolute