Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

4.4 Understanding CSS Selectors and IDs Quiz

star
star
star
star
star
Posljednje ažuriranje over 1 year ago
5
1
1
1
1
1
Pitanje 1
1.

Why is selecting by ID considered more specific than selecting by class or tag in CSS?

Pitanje 2
2.

If an HTML element has both a class and an ID assigned to it, which style will take precedence if there is a conflict?

Pitanje 3
3.

What is a valid way to name an ID in CSS?

Pitanje 4
4.

Consider the following CSS rules:

`p { color: green; }`

`.alert { color: red; }`

`#logo { color: blue; }`

If an element has the class "alert" and the ID "logo," what color will the text be?

Pitanje 5
5.

Which of the following statements about CSS ID selectors is true?