wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Test

Total questions: 50

Worksheet time: 29mins

Name
Class
Date
1.
What programming language is used to create a website?
a)
Visual Basic
b)
HTML
c)
CSS
d)
Scratch
2.
What does HTML stand for?
a)
HyperText Makeup Language
b)
HyperText Markup Language
c)
HyperType Markup Language
d)
HighText Markup Language
3.
<p> are used to code ____.
a)
headers
b)
page
c)
paragraph
d)
hyperlink
4.
Which one of these codes work?
a)
<h1> Dinosaurs <h1>
b)
<p> I saw a tortoise yesterday. It moved very slow. I raced it and won <p/>
c)
<h4> Flowers in Spring >/h4>
d)
<body> Salt is evil </body>
5.
What tag is used to indicate a headline/title?
a)
<h1>
b)
<h2>
c)
<h3>
d)
<h6>
6.
Every tag has both an opening tag and a closing tag.
a)
True
b)
False
7.
How do you close a HTML tag?
a)
< >
b)
<\>
c)
{ }
d)
</>
8.
What does a <br> tag do?
a)
Inserts a space between text
b)
Creates a link to a webpage
c)
Inserts a single line break
d)
Inserts multiple line breaks
9.
What is a hyperlink?
a)
A heavy metal song
b)
A way for pages to link to one another on the internet
c)
The speed of how we travel on the internet
d)
The new transportation model created by Elon Musk in Las Vegas
10.
What is <!DOCTYPE html> used for?
a)
Lets the browser know that it is reading in HTML
b)
Tells the programmer that HTML is being used
c)
Nothing, that line is made up!
11.
Where are the <html> and </html> tags used?
a)
<html> at the beginning. </html> at the end
b)
</html> at the beginning. <html> at the end
c)
Both go at the beginning of the document
d)
Both go at the end of the document
12.
What is the <head> used for?
a)
Displays the key information
b)
Used to create large text
c)
Inputs an image of someone's head
d)
Used to hold info about the doc, not typically display in output section.
13.
Does your formatting (spaces/indentations) in the input section show up in the output section?
a)
yes
b)
no
14.
How does a page of HTML start?
a)
<@DOCTYPE html>
b)
<?DOCTYPE html>
c)
<!DOCTYPE html>
d)
</DOCTYPE html
15.
What tag is used for all visible content?
a)
<head>
b)
<body>
c)
<vis>
d)
<p>
16.
What is wrong with the following code?
a)
No </br> tag
b)
Nothing!
c)
No </html> tag
d)
<!DOCTYPE html> is wrong
17.
How many different headings can you have an in a HTML file?
a)
6
b)
3
c)
7
d)
8
18.
What Does HTML and CSS stand for?
a)
HyperTension Markup Languages and Cascading Style Sheets
b)
Cascading Style Sleeps and HyperText Meekup Language
c)
HyperText Markdown Language and Cascading Style Sheets
d)
Cascading Style Sheets and HyperText Markup Language
19.
What does WWW stand for?
a)
Word Wide Web
b)
Worm Went Wireless
c)
World Wide Web
d)
Will Welcome Webbers
20.
Is this HTML or CSS?
a)
HTML
b)
CSS
21.
What code do you use to link CSS to HTML?
a)
<link ler="triangle"ferh="kid.css">
b)
<link rel="stylesheet"href="style.css">
c)
<link real=sheetstyle"href="css.style">
d)
<link rel="merrychristmas"href=style.css">
22.

HTML is a ........................language.

a)

programming

b)

scripting

c)

object oriented

d)

markup

23.

Which of the following will correctly display the words above?

a)

<h3> Eggs </h3>

<h1> Bacon </h1>

<h6> Waffles </h6>

b)

B<h1> Eggs </h1>

<h2> Bacon </h2>

<h3> Waffles </h3>

c)

<h6> Eggs </h6>

<h1> Bacon </h1>

<h3> Waffles </h3>

24.

The src attribute of an <img> tag, specifies the URL(web address) of the image.

a)

True

b)

False

25.

The <img> tag is empty; it doesn't have a ______ tag.

a)

new

b)

freestyle

c)

closing

26.

What is a bug?

a)

Part of a program that does not work correctly

b)

a Hemipteron

c)

Part of a program that does work correctly

d)

Finding and fixing problems in an algorithm or program.

27.

The tag that signals to a computer that the file it is reading is an HTML document is _____________ .

a)

<web>

b)

<!DOCTYPE html>

c)

<head>

d)

<html>

28.

What is the correct HTML element for inserting a line break?

a)

<br>

b)

<lb>

c)

<break>

29.

What do you end every HTML with?

a)

</closer>

b)

<end>

c)

</end>

d)

</html>

30.

All content that will be visible in a web page must be added between these tags:

a)

<script> </script>

b)

<head> </head>

c)

<p> </p>

d)

<body> </body>

31.

<p> What are these tags for</p>?

a)

paragraph

b)

paraphrasing

c)

play on pages/words

32.

<title> means

a)

Defines a line break

b)

Defines a paragraph

c)

Titles the document

d)

Defines a section

33.

Given the following output - which HTML element would produce the desired output for #6? (see image)

a)

Caesar Salad

b)

Caesar salad

c)

caesar Salad

d)

caesar salad

34.

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>

35.

Which of the following codes would create a horizontal line

a)

<br>

b)

<h1></h1>

c)

<hr>

d)

<p>

36.

Which code below is correct for a hyperlink

a)

<a>

"https://google.com"

Click Me

</a>

b)

<a>Click Me>

"https://google.com"

</a>

c)

<a herf="https://google.com">

Click Me

</a>

d)

<a href="https://google.com">

Click Me

</a>

37.

src attribute in an image tag means what?

a)

Source of the image

b)

Name of the image

c)

Description of the image

d)

Not used with image tag

38.
Trading something for something else - no currency involved
a)
demand
b)
barter
c)
goods
d)
market
39.
A person who buys goods and services
a)
consumer
b)
entrepreneur
c)
resource
d)
currency
40.
The using up of a resource
a)
scarcity
b)
supply
c)
services
d)
consumption
41.
another word for money
a)
barter
b)
economics
c)
currency
d)
price
42.
How much people want something
a)
supply
b)
demand
43.

A person who comes up with a new idea for a product, and they actually make it and sell it.

a)

resource

b)

human resources

c)

consumer

d)

entrepreneur

44.
Something we pay for that we can touch
a)
goods
b)
services
45.

Increasing the money supply too quickly > currency loses value > prices increase

a)
price
b)
inflation
c)
scarcity
d)
demand
46.
The place where goods and services are exchanged
a)
barter
b)
currency
c)
market
d)
resource
47.
The amount of money we pay for a good or service
a)
currency
b)
price
c)
inflation
d)
economics
48.

Something we pay to use for a certain amount of time

a)

services

b)

goods

49.
How much of something is available
a)
supply
b)
demand
50.
The exchange of goods and services
a)
trade
b)
market
c)
economics
d)
consumer