wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Quiz

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyperlink Text Making Language

b)

Hyper Text Markup Language

c)

High Text Machine Language

d)

Hyper Tool Markup Language

2.

Which HTML tag defines the document type?

a)

<html>

b)

<title>

c)

<!DOCTYPE html>

d)

<meta>

3.

Which element is the root of an HTML page?

a)

<head>

b)

<body>

c)

<html>

d)

<title>

4.

What tag is used to display a paragraph in HTML?

a)

<pg>

b)

<p>

c)

<para>

d)

<text>

5.

Which of the following defines a large heading?

a)

<heading>

b)

<head>

c)

<h1>

d)

<h6>
6.

Which tag is used to create a horizontal line?

a)

<line />

b)


<br />

c)


<hr />

d)

<break / >

7.

The <br / > tag is an example of what type of tag?

a)

Container tag

b)

Empty tag

c)

Inline tag

d)

Block tag

8.

What tag defines the main visible content of an HTML document?

a)

<body>

b)

<main>

c)

<content>

d)

<html>

9.

The tag used to create a line break is _______.

a)

<lb />

b)

<ln / >

c)


<br / >

d)


<div / >

10.

Which of the following tags does not require a closing tag?

a)

</h1>

b)

</p>

c)


<br / >

d)

<div/>

11.

Which attribute can be used to set the background color of a webpage?

a)

bgcolor

b)

background

c)

bg

d)

backcolor

12.

In <body bgcolor = "black" text="white">, what does text="white" do?

a)

Sets font type

b)

Sets paragraph color

c)

Sets text color

d)

Sets background color

13.

What is the correct tag to create the title of a web page (displayed in browser tab)?

a)

<header>

b)

<head>

c)

<title>

d)

<heading>

14.

Which of the following is an HTML element?

a)

<p> only

b)

<p>This is a paragraph</p>

c)

This is a paragraph only

d)

</p>

15.

A tag that has both opening and closing tags is called a:

a)

Empty tag

b)

Void tag

c)

Container tag

d)

Break tag

16.

Which attribute aligns text horizontally within a tag?

a)

align

b)

text

c)

position

d)

layout

17.

What are the two parts of an HTML attribute?

a)

Tag and property

b)

Name and value

c)

Text and color

d)

Command and code

18.

The attribute that specifies the text color of a webpage is ______.

a)

align

b)

bgcolor

c)

color

d)

text

19.

What does HTML use to describe the structure of a web page?

a)

Tags and elements

b)

Design tools

c)

Scripts

d)

Images

20.

The tag <h6>

defines ______.

a)

A paragraph

b)

A smallest heading

c)

The largest heading

d)

A body section

21.

What is the purpose of HTML formatting tags?

a)

To add comments in the HTML code

b)

To format text for better look and feel

c)

To insert links into a webpage

d)

To define the structure of a webpage

22.

Which tag highlights or marks a specific portion of text?

a)

<u>

b)

<mark>

c)

<b>

d)

<em>

23.

What tag is used to underline text in HTML?

a)

<highlight>

b)

  • <ul>

c)

<under>

d)

<u>

24.

Which tag reduces the size of the text compared to the normal font size?

a)

<small>

b)

<tiny>

c)

<sub>

d)

<font>

25.

Which tag is used to display text half a character’s height above the rest?

a)

<sub>

b)

<mark>

c)

<sup>

d)

<big>