CSS Selectors
by Kwiz
Qs
11
Difficulty
Junior
Plays
1
Record
2:03
Description

A quiz to test your knowledge of some of the most important CSS selectors

Question Preview
Select which elements the following selector matches
div
Question Preview
How does the following selector work?
#
Question Preview
How does the following selector work?
.example
Question Preview
How does the following selector work?
div .button { 
  /* content */ 
}
Question Preview
How does the following selector work?
div.button        
Question Preview
How does the following selector work?
div > .button
Question Preview
To which elements will the css rules be applied?
.button, #welcome {
 /* css rules */
}
Question Preview
How does the following selector work?
a[href^="http"]
Question Preview
How does the following selector work?
:checked
Question Preview
How does the following selector work?
a:hover      
Question Preview
How does the following selector work?
tr:nth-child(odd)