HTML & CSS Basics

HTML & CSS Basics

9th Grade

10 Qs

quiz-placeholder

Similar activities

Dreamweaver HTML Basic

Dreamweaver HTML Basic

5th - 9th Grade

15 Qs

Aprendiendo HTML y CSS

Aprendiendo HTML y CSS

3rd Grade - University

10 Qs

web design

web design

6th - 9th Grade

12 Qs

Advanced HTML and CSS

Advanced HTML and CSS

9th - 12th Grade

15 Qs

Website Design

Website Design

KG - University

10 Qs

WD 2 - More HTML

WD 2 - More HTML

KG - 12th Grade

10 Qs

CSS Selectors

CSS Selectors

9th - 12th Grade

15 Qs

HTML & CSS Basics

HTML & CSS Basics

9th - 12th Grade

15 Qs

HTML & CSS Basics

HTML & CSS Basics

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Trent Roth

FREE Resource

10 questions

Show all answers

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

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?