Search Header Logo

HTML Basics Quiz

Authored by dcsgs sdfdg

Computers

12th Grade

Used 2+ times

HTML Basics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

55 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `` tag in HTML?

To define the visible content of the page.

To define the title and metadata of the document.

To include external content.

To specify background settings.

Answer explanation

The `` tag in HTML is used to define the title and metadata of the document, which includes information like the document's character set, styles, and scripts. This is essential for SEO and proper rendering.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tag is used to create a paragraph in HTML?

<PR>

`

<P>

<br>

<b>

Answer explanation

The `

` tag is used to create a paragraph in HTML. It defines a block of text, making it the correct choice among the options provided. The other tags do not serve this purpose.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which HTML tag is used to create an ordered list?

<li>

<l>

<OL>

<UL>

Answer explanation

The `

    ` tag is used to create an ordered list in HTML, which displays items in a numbered format. The `
      ` tag creates an unordered list, while `
    • ` is used for list items, and `
      ` is for description lists.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default size of a heading (h1) in HTML?

10px

12px

Largest font size

20px

Answer explanation

In HTML, the

tag is designed to be the largest heading size by default, making it the largest font size among heading elements. Therefore, the correct answer is 'Largestfontsize'.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tag is used to create a line break?

<BR>

<LB>

<LR>

<LINE BREAK>

Answer explanation

The correct tag to create a line break in HTML is `
`. The `` and `` tags do not exist, while `


` is used for horizontal rules, not line breaks.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the `


` tag in HTML?

To create horizontal lines

To create line breaks

To insert comments

To separate paragraphs

Answer explanation

The `


` tag in HTML is used to create horizontal lines, serving as a visual separator in content. This makes 'To create horizontal lines' the correct choice, as it directly describes the tag's primary function.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tag is used to comment out code in HTML?

<!-- This is a single-line comment -->

//comment

<-- This is a single-line comment -->

#comment

Answer explanation

The correct tag to comment out code in HTML is ``. Other options like //comment, /comment/, and comment are not valid HTML comment syntax.