CSS Selectors

CSS Selectors

11th Grade

10 Qs

quiz-placeholder

Similar activities

[Hall] JS and the DOM

[Hall] JS and the DOM

9th - 12th Grade

12 Qs

Javascript Quiz 1

Javascript Quiz 1

11th Grade

15 Qs

5.3 ID The Elements - Inline, Block, Attribute

5.3 ID The Elements - Inline, Block, Attribute

9th - 12th Grade

12 Qs

CSS - Quiz 1

CSS - Quiz 1

9th Grade - University

15 Qs

Evaluasi HTML dan CSS

Evaluasi HTML dan CSS

11th Grade

10 Qs

CSS Rules Quiz-unit 4 CodeHS

CSS Rules Quiz-unit 4 CodeHS

7th Grade - University

7 Qs

Web I: Final Review--BUGS!

Web I: Final Review--BUGS!

9th - 12th Grade

13 Qs

Kuizi 13 - Web

Kuizi 13 - Web

10th Grade - University

15 Qs

CSS Selectors

CSS Selectors

Assessment

Quiz

Computers

11th Grade

Hard

Created by

ARTURO PARIÑAS

Used 57+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following selectors selects any tag with an id attribute set?

E#id

.class

#id

*

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of below mentioned code snippet?

p strong {background-color: yellow;}

Strong have yellow background

Strong element within a p element have a yellow background

Both p and strong have yellow background

None of the mentioned

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The _____________ attribute is used to define the name(s) of the class(es) to which a particular tag belongs.

class

elelment

id

none of the choices

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

By applying an ___________ a style can be applied to just a single tag.

class rule

element rule

id rule

none of the choices

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What type of selector is used in this case?

p {line-height: 150%;}

class selector

element selector

id selector

none of the choices

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How many different types of selectors in CSS?

3

4

5

6

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

An id is NOT always unique within the page so it is chosen to select a single, unique element.

True

False

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?