HTML

HTML

University

•

30 Qs

quiz-placeholder

Similar activities

IoT Quiz - 1

IoT Quiz - 1

University - Professional Development

•

25 Qs

Quiz Teori bahasa Otomata

Quiz Teori bahasa Otomata

University

•

25 Qs

data mining

data mining

University

•

30 Qs

CCC14 Chapter 4 - Spreadsheet

CCC14 Chapter 4 - Spreadsheet

University

•

25 Qs

Information assurance and security

Information assurance and security

University

•

25 Qs

Quiz Sistem Operasi

Quiz Sistem Operasi

10th Grade - University

•

25 Qs

GDSC FET Jain University Study Jam 106

GDSC FET Jain University Study Jam 106

University

•

25 Qs

Computer Pretest1(Arduino Grade8_t1)

Computer Pretest1(Arduino Grade8_t1)

3rd Grade - University

•

25 Qs

HTML

HTML

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Hard

Created by

Shashwat Mahendra

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers