wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Quiz

Total questions: 25

Worksheet time: 2hrs 5mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyper Text Making Language

b)

High Tool Markup Language

c)

Hyper Text Markup Language

d)

Hyperlink and Text Marking Language

2.

Which tag is used to create a hyperlink in HTML?

a)

<link>

b)

<a>

c)

<href>

d)

<url>

3.

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

a)

To display the main heading inside the webpage body

b)

To define the title of a section in the page content

c)

To specify the title of the document in the browser tab

d)

To label an image or link with a tooltip

4.

Which attribute is used to specify the destination of a hyperlink?

a)

link

b)

target

c)

src

d)

href

5.

Which HTML element is used to define an unordered list?

a)

<list>

b)

<ul>

c)

<li>

d)

<ol>

6.

What is the function of the <meta> tag in HTML?

a)

To create hyperlinks to metadata pages

b)

To display metadata on the web page

c)

To store meta images and text within the header

d)

To provide metadata about the HTML document

7.

Which attribute is used to specify an alternative text for an image in HTML?

a)

alt

b)

src

c)

title

d)

href

8.

What is the purpose of the <body> tag in HTML?

a)

To specify the document type

b)

To create header and footer

c)

To create body

d)

To define the main content of the document

9.

Which HTML element is used to define a table?

a)

<tab>

b)

<td>

c)

<table>

d)

<tr>

10.

What does the <script> tag in HTML do?

a)

It creates a new HTML document

b)

It is used to include JavaScript code

c)

To include external JS

d)

It makes the structure of the page

11.

What is the purpose of the <head> tag in HTML?

a)

To define the footer of the document

b)

To contain metadata and links to scripts and stylesheets

c)

To display images on the page

d)

To create a sidebar for navigation

12.

Which tag is used to create a line break in HTML?

a)

<br>

b)

<break>

c)

<line>

d)

<lb>

13.

What is the function of the <form> tag in HTML?

a)

To create formal webpage

b)

To display form data directly as plain text

c)

To create formatted text areas on a webpage

d)

To collect user input

14.

What does the <img> tag in HTML do?

a)

It embeds an image in the document

b)

It creates a image

c)

It is a imagine command

d)

None

15.

Which HTML element is used to define a paragraph?

a)

<paragraph>

b)

<para>

c)

<p>

d)

<text>

16.

What is the purpose of the <link> tag in HTML?

a)

To link images to the document

b)

To link JavaScript

c)

To create a hyperlink

d)

To link to external stylesheets

17.

What does the <style> tag in HTML do?

a)

It links to external CSS files

b)

It creates a new text style

c)

It defines internal CSS styles for the document

d)

It adds inline styling

18.

Which HTML tag is used for the largest heading?

a)

<h1>

b)

<head>

c)

<h6>

d)

<big>

19.

How to write comment in HTML?

a)

//comment

b)

<!--comment-->

c)

/*comment*/

d)

--comment--

20.

Which tag is used to insert a video?

a)

<clip>

b)

<mp4>

c)

<vid>

d)

<video>

21.

Which tag is used to define a navigation menu?

a)

<menu>

b)

<navmenu>

c)

<nav>

d)

<navbar>

22.

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

a)

<hr-line>

b)

<hr>

c)

<horizontal>

d)

<line>

23.

Which of these is a semantic HTML tag?

a)

<div>

b)

<span>

c)

<article>

d)

<b>

24.

HTML is a programming Language.

a)

True

b)

False

25.

Which tag is used to group content in HTML?

a)

<group>

b)

<content>

c)

<div>

d)

<box>