HTML

HTML

University

30 Qs

quiz-placeholder

Similar activities

Moodle Pretest

Moodle Pretest

University

30 Qs

Java - SET -1

Java - SET -1

University

25 Qs

Web Programing

Web Programing

University

30 Qs

Профессиональная иностранная терминология_7

Профессиональная иностранная терминология_7

University

25 Qs

Thinking in HTML

Thinking in HTML

University

30 Qs

Q1 ICT09 Lesson 4 Post-video Assessment

Q1 ICT09 Lesson 4 Post-video Assessment

9th Grade - University

30 Qs

Web Service

Web Service

University

25 Qs

Evaluasi Praktikum E-Commerce

Evaluasi Praktikum E-Commerce

University

30 Qs

HTML

HTML

Assessment

Quiz

Computers

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?