Search Header Logo

HTML Basics Quiz

Authored by DyC iClub

Computers

9th Grade

Used 3+ 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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to add background color green in HTML?

Commas

Quotation marks

Parenthesis

Angle Bracket

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where do all items for the same website need to be saved?

Where ever is fine

In different folders

In different subfolder

In the same folder

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the DOCTYPE declaration do in an HTML document?

Informs the web browser about the version of HTML being used.

Initiates the JavaScript engine in the web browser.

Specifies the CSS file linked to the HTML document.

Defines the character encoding of the document.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of the section in an HTML document?

To define the footer of the web page.

To display visible content to the user.

To contain metadata and instructions for the browser.

To include the main navigation links.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of the <head> tag in an HTML document?

It declares the document type and version of HTML being used.

It defines the metadata of the document, including the character encoding and viewport settings.

It indicates the beginning and end of an HTML document, encompassing all content within the document

It is used to link external CSS files to style the HTML document.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Do all HTML elements require a closing tag?

No, not all HTML elements require a closing tag. Some elements, known as self-closing or void elements, do not need a closing tag, such as <img>, <br>, and <input>.

Closing tags are optional for all HTML elements as modern web browsers can automatically infer the end of elements.

Yes, every HTML element must have a corresponding closing tag to ensure proper rendering by the web browser.

Only HTML elements that contain other elements or content require a closing tag, while standalone elements do not.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Considering the default behavior of HTML headings regarding font size, which statement accurately describes the relationship between <h1>, <h2>, and <h3> tags?

<h1> has the largest default font size, suitable for the main title of a page. <h2> is used for major section headings with a smaller font size than <h1>, and <h3> is for sub-sections, with a font size smaller than <h2>, reflecting a hierarchical document structure.

The font sizes for <h1>, <h2>, and <h3> are the same, with differences only in semantic importance.

<h3> is the largest and should be used for the main title, while <h2> and <h1> are for subsections and minor points, respectively.

HTML headings do not influence the hierarchy of content; CSS is solely responsible for defining such relationships.

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?