
HTML

Quiz
•
Computers
•
University
•
Hard
Shashwat Mahendra
Used 6+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the root element of an HTML document?
A) <body>
B) <head>
C) <root>
D) <html>
E) None
Answer explanation
The <html> tag is the root element that encompasses all other HTML elements in a document.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about the <div> element?
a) It is an inline element by default.
b) It can only contain other block-level elements.
c) It automatically creates a line break after the element.
d) It can be used within the <head> tag.
Answer explanation
While it's technically possible to use a <div> within the <head> tag, it's not recommended and has no practical use. The <head> section is primarily for metadata and structure information, not content display.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the <title> tag in HTML?
A) To define the main heading of the page
B) To specify the title of the document, shown in the browser's title bar
C) To add a title attribute to other tags
D) To create a tooltip for elements
E) None
Answer explanation
The <title> tag sets the title of the web page, which appears in the browser's title bar or tab.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a block-level element by default?
A) <span>
B) <div>
C) <img>
D) <b>
Answer explanation
The <div> element is a block-level element, meaning it starts on a new line and takes up the full width available.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which tag is used to make text bold without implying any importance?
A) <strong>
B) <bold>
C) <b>
D) <em>
Answer explanation
The <b> tag makes text bold without conveying any extra semantic meaning. <strong> implies importance.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a self-closing tag in HTML?
A) A tag that requires no closing tag, like <input>
B) A tag that closes automatically, like <div>
C) A tag that closes only when the page is refreshed
D) A tag that is always used in pairs, like <b> and </b>
Answer explanation
Self-closing tags do not have separate closing tags and are written with a slash at the end, e.g., <input />.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a semantic HTML element?
A) <div>
B) <span>
C) <section>
D) <b>
Answer explanation
Semantic elements like <section> provide meaningful structure and context to web content, making it easier to understand both for developers and browsers.
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
CSS

Quiz
•
9th Grade - University
25 questions
C PROGRAMMING

Quiz
•
University
25 questions
HTML unit 5 Quiz

Quiz
•
University
25 questions
HTML and CSS Quiz

Quiz
•
University
30 questions
Python Review

Quiz
•
University
25 questions
HTML Table Quiz

Quiz
•
University
30 questions
BUG@MASTER

Quiz
•
University
25 questions
Kuis 1 - PKS 2

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University