NEW
Font size
WorksheetsHTML Quiz Questions
Total questions: 25
Worksheet time: 8mins
What does HTML stand for?
Hyper Text Markup Language
Home Tool Markup Language
Hyperlinks and Text Markup Language
Hyper Tool Multi Language
Which of the following is a self-closing tag?
<div>
<img>
<span>
<p>
What is the correct HTML tag for inserting a line break?
<break>
<lb>
<br>
<line>
Which tag is used to define a hyperlink in HTML?
<link>
<a>
<href>
<hyper>
What is the correct HTML element for inserting an image?
<img>
<src>
<image>
<pic>
Which HTML attribute specifies an alternate text for an image?
alt
title
src
longdesc
Which of the following is a semantic element in HTML5?
<div>
<section>
<span>
<br>
Which HTML element is used to define important text?
<strong>
<i>
<b>
<em>
What is the purpose of the of the <title> element in HTML?
Defines a table title
Displays title in the browser tab
Sets the main heading
Defines image title
Which attribute is used to open a hyperlink in a new tab/window?
open
target='_blank'
new
window='_new'
What is the correct HTML tag for creating a checkbox?
<checkbox>
<input type='check'>
<input type='checkbox'>
<check>
Which tag is used to add a description list in HTML?
<dl>
<dd>
<dt>
All of the above
What does the <caption> tag do in an HTML table?
Defines a table heading
Adds a title to the table
Inserts an image in the table
Creates a row
How do you create a table row in HTML?
<tr>
<td>
<row>
<table-row>
Which tag is used to group block-elements in HTML?
<span>
<div>
<section>
<p>
Which tag is used to embed a video in HTML5?
<video>
<media>
<embed>
<movie>
What is the difference between
<div> and <span>?
Both are block elements
Both are inline elements
How can you make a numbered list in HTML?
<ul>
<ol>
<dl>
<list>
Which HTML attribute is used to uniquely identify an element?
class
id
name
key
What is the correct way to comment in HTML?
// comment //
<!-- comment -->
/* comment */
# comment
Which organization is responsible for maintaining HTML standards today?
W3C
Microsoft
Mozilla
Apple
What does the tag do?
Sets the font style
Defines character encoding
Adds metadata description
Defines UTF scripting
Who is known as the inventor of HTML?
Bill Gates
Tim Berners-Lee ✅
Charles Babbage
Brendan Eich
In which year was HTML first proposed?
1991
1993
1999
1980
How do you create a text input field in HTML?
<textfield>
<input type='text'>
<text>
<input text>
