Search Header Logo

HTML & CSS Basics

Authored by Trent Roth

Computers

9th Grade

10 Questions

HTML & CSS Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

To create a new paragraph

To group elements for styling purposes

To add a line break

To define a section in a document

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a division in an HTML document?

`

`

``

`

`

`

main
`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you select an element with the id "header" in CSS?

`#header`

`.header`

`header`

`*header`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to define a class in CSS?

`#className { }`

`.className { }`

`className`

`*className { }`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary difference between an HTML `

` and a ``?

`

` is used for inline elements, while `` is used for block-level elements

`

` can contain a ``, but not vice versa

`

` is a block-level element, while `` is an inline element

There is no difference

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you apply CSS styles to a specific class named "menu"?

`#menu { }`

`.menu { }`

`menu { }`

`*menu { }`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about CSS IDs?

An ID can be used on multiple elements within the same page

IDs are case-sensitive

IDs are primarily used for JavaScript selection

IDs can be reused within the same CSS file

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