HTML

HTML

University

30 Qs

quiz-placeholder

Similar activities

Module 3 - Security Architecture

Module 3 - Security Architecture

University

25 Qs

Aptitude Competition(FY)

Aptitude Competition(FY)

University

25 Qs

UJIAN MID SEMESTER 1 X ALL MAPEL SIMULASI DAN KOMUNIKASI DIGITAL

UJIAN MID SEMESTER 1 X ALL MAPEL SIMULASI DAN KOMUNIKASI DIGITAL

10th Grade - University

25 Qs

PRANATA KOMPUTER

PRANATA KOMPUTER

University

31 Qs

ข้อสอบพื้นฐานการใช้การงานโปรแกรม Microsoft Exsel

ข้อสอบพื้นฐานการใช้การงานโปรแกรม Microsoft Exsel

University

30 Qs

Review 32 - Will/going to

Review 32 - Will/going to

University

25 Qs

Atividade sobre Modelos de Processo de Software

Atividade sobre Modelos de Processo de Software

University

25 Qs

Quiz Bootstrap (Fullstack Praktikum)

Quiz Bootstrap (Fullstack Praktikum)

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