wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Quiz

Total questions: 32

Worksheet time: 32mins

Name
Class
Date
1.

What is the purpose of the

tag in HTML?

a)

to indicate the beginning and end of an HTML element

b)

To create a list

c)

To define a heading

d)

To display an image

2.

What is the role of the src attribute in HTML image tags?

a)

Specifies the color of the image

b)

Specifies the size of the image

c)

Specifies the URL of the image to be displayed

d)

Specifies the font of the image

3.

Explain the use of the href attribute in HTML link tags.

a)

Specifies the size of the link

b)

Indicates the position of the link on the page

c)

Specifies the URL of the page the link goes to

d)

Defines the color of the link

4.

Choose the correct HTML element for the largest heading:

a)

<head>

b)

<h6>

c)

<h1>

d)

<heading>

5.

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

a)

<br>

b)

<break>

c)

<lb>

6.

What is the correct HTML for creating a hyperlink?

a)

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

b)

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

c)

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

7.

Which character is used to indicate an end tag?

a)

/

b)

^

c)

*

d)

<

8.

What is the correct HTML for inserting an image?

a)

<img href="image.gif" alt="MyImage">

b)

<image src="image.gif" alt="MyImage">

c)

<img alt="MyImage">image.gif</img>

d)

<img src="image.gif" alt="MyImage">

9.

Which HTML element defines the title of a document?

a)

<meta>

b)

<title>

c)

<head>

10.

What is the correct HTML for adding a background color?

a)

<body color=”yellow”>

b)

<body bgcolor=”yellow”>

c)

<body vlink="yellow">

d)

<body background=”yellow”>

11.

Make the element below into a link that goes to "https://www.w3schools.com".


<a (a)   "https://www.w3schools.com">This is a link</a>

12.

<p> is the opening tag for a _____________

a)

page

b)

paragraph

c)

preorder

d)

period

13.

HTML controls the _________ of a webpage.

a)

feel

b)

precision

c)

structure

d)

style

14.

Web pages starts with which of the following tag?

a)

<form>

b)

<HTML>

c)

<body>

d)

<Title>

15.

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

a)

<!DOCTYPE html>

<html>

<head>

</head>

<body>

</body>

</html>

b)

<html>

<head>

</head>

<body>

</body>

</html>

c)

<!DOCTYPE html>

<html>

<head>

</head>

</html>

d)

<!DOCTYPE html>

<html>

<head>

</head>

<body>

</body>

16.

It is the standard markup language for creating Web pages.

a)

HTML (Hyper Text Markup Language)

b)

Javascript

c)

CSS (Cascading Style Sheets)

d)

HTML tags

17.

HTML tags are element names surrounded by __________.

a)

<angle brackets>

b)

(round brackets)

c)

[square brackets]

d)

(round brackets) and [square brackets]

18.

The first tag in a pair is the start tag, the second tag is the __________.

a)

new tag

b)

end tag

c)

last tag

d)

old tag

19.

The start tag is also called the ____________, and the end tag the closing tag.

a)

start tag

b)

beginning tag

c)

new tag

d)

opening tag

20.

The end tag is written like the start tag, but with a forward slash inserted before the tag name. Which is the following is an example of a correct end tag?

a)

<p>

b)

<p/>

c)

</p>

d)

</p/>

21.

HTML tags normally come _________ like <p> and </p>

a)

in pairs

b)

in groups

c)

in one

d)

in single

22.

Belle is creating a simple webpage. She has asked for your opinion on what color scheme will she use on her website, what will you suggest?

a)

a.Tell her it would look nice if she makes use of rainbow colors

b)

a.Tell her it would look nice if she makes use of neon color

c)

a.Tell her it would look nice if she keep it simple but appealing

d)

a.Tell her to use dull and boring colors

23.

The following are example of web browsers EXCEPT:

a)

Windows

b)

Google Chrome

c)

Internet Explorer

d)

Mozilla Firefox

24.

Which is the correct syntax for a link?

a)

<a href="url">link text</a>

b)

<a href="url" link text>

c)

<a href=url>link text</a>

d)

<a href="url" link text</a>

25.
A <tag>
a)
Is used to divide sections
b)
Is not needed in HTML
c)
Tells the browser how to format our content
d)
Is part of the title line in HTML
26.
<img> tag finds;
a)
finds the image located at the a URL and the src attribute and then displays it.
b)
finds the image located at the SRC in the URL attribute and then displays it.
c)
Adds a cool picture
d)
Does not work in HTML coding
27.

Which of the following are NOT an extension file name for an image?

a)

.jpg

b)

.bmp

c)

.docx

d)

.gif

28.

A set of pages of information on the Internet about a particular subject is called a

a)

Website

b)

Web browser

29.

The tags which require opening (start) and closing (end) tags are called

a)

Empty tags

b)

Container tags

30.

____________ tags do not require a closing tag in an HTML document.

a)

Empty tags

b)

Container tags

31.

What should a HTML web page end with?

a)

</html>

b)

<head>

c)

</end>

d)

</body>

32.

What does this tag stand for? <b>

a)

bright

b)

big

c)

beautiful

d)

bold