wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Quiz Questions

Total questions: 25

Worksheet time: 8mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyper Text Markup Language

b)

Home Tool Markup Language

c)

Hyperlinks and Text Markup Language

d)

Hyper Tool Multi Language

2.

Which of the following is a self-closing tag?

a)

<div>
b)

<img>

c)

<span>

d)

<p>

3.

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

a)

<break>

b)

<lb>

c)


<br>

d)

<line>

4.

Which tag is used to define a hyperlink in HTML?

a)

<link>

b)

<a>

c)

<href>

d)

<hyper>

5.

What is the correct HTML element for inserting an image?

a)

<img>

b)

<src>

c)

<image>

d)

<pic>

6.

Which HTML attribute specifies an alternate text for an image?

a)

alt

b)

title

c)

src

d)

longdesc

7.

Which of the following is a semantic element in HTML5?

a)

<div>

b)

<section>

c)

<span>

d)

<br>

8.

Which HTML element is used to define important text?

a)

<strong>

b)

<i>

c)

<b>

d)

<em>

9.

What is the purpose of the of the <title> element in HTML?

a)

Defines a table title

b)

Displays title in the browser tab

c)

Sets the main heading

d)

Defines image title

10.

Which attribute is used to open a hyperlink in a new tab/window?

a)

open

b)

target='_blank'

c)

new

d)

window='_new'

11.

What is the correct HTML tag for creating a checkbox?

a)

<checkbox>

b)

<input type='check'>

c)

<input type='checkbox'>

d)

<check>

12.

Which tag is used to add a description list in HTML?

a)

<dl>

b)

<dd>

c)

<dt>

d)

All of the above

13.

What does the <caption> tag do in an HTML table?

a)

Defines a table heading

b)

Adds a title to the table

c)

Inserts an image in the table

d)

Creates a row

14.

How do you create a table row in HTML?

a)

<tr>

b)

<td>

c)

<row>

d)

<table-row>

15.

Which tag is used to group block-elements in HTML?

a)

<span>

b)

<div>

c)

<section>

d)

<p>

16.

Which tag is used to embed a video in HTML5?

a)

<video>

b)

<media>

c)

<embed>

d)

<movie>

17.

What is the difference between

<div> and <span>?

a)

is inline, is block

b)

is block, is inline

c)

Both are block elements

d)

Both are inline elements

18.

How can you make a numbered list in HTML?

a)

  • <ul>

b)

  1. <ol>

c)

  1. <dl>

d)
  1. <list>

19.

Which HTML attribute is used to uniquely identify an element?

a)

class

b)

id

c)

name

d)

key

20.

What is the correct way to comment in HTML?

a)

// comment //

b)

<!-- comment -->

c)

/* comment */

d)

# comment

21.

Which organization is responsible for maintaining HTML standards today?

a)

  • W3C

b)

  1. Microsoft

c)

  1. Mozilla

d)

  • Apple

22.

What does the tag do?

a)

Sets the font style

b)

Defines character encoding

c)

Adds metadata description

d)

Defines UTF scripting

23.

Who is known as the inventor of HTML?

a)

Bill Gates

b)

Tim Berners-Lee ✅

c)

Charles Babbage

d)

Brendan Eich

24.

In which year was HTML first proposed?

a)

1991

b)

1993

c)

1999

d)

1980

25.

How do you create a text input field in HTML?

a)

<textfield>

b)

<input type='text'>

c)

<text>

d)

<input text>