Search Header Logo

WEB DESIGN QUIZ P2

Authored by Ann Ricafort

Computers

12th Grade

Used 5+ times

WEB DESIGN QUIZ P2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the primary use of the class attribute in HTML?

Identify unique elements

Define inline styles

Assign multiple IDs

Reference class names for styling

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How is a CSS class selector defined?

Preceded by a full stop

Preceded by a hash character

Preceded by a dollar sign

Preceded by an exclamation mark

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Can HTML classes be numbers?

No, only letters are allowed

No, only special characters are allowed

Yes, but only odd numbers

Yes, numbers are supported

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the id attribute specify in HTML?

A specific style declaration

A unique identifier for an element

A reference to a JavaScript function

A unique class name

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How is an id selector defined in CSS?

Preceded by a full stop

Preceded by a hash character

Preceded by an exclamation mark

Preceded by a dollar sign

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of the id attribute in HTML?

Assign multiple classes to an element

Identify a unique element on the page

Define inline styles for an element

Link to an external stylesheet

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can CSS classes be reused across multiple elements?

By using the same class name for each element

By defining a new class for each element

By using inline styles for each element

By assigning IDs to each element

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?