E ~ F
::after
:checked
None of these
:valid
:required
:optional
:invalid
:focus
:active
:hover
:visited
~
>
+
*
E[attr^=value]
E[attr$=value]
E[attr*=value]
ID selector
Class selector
Group selector
Universal selector
content p
p.content
.content > p
p .content
Match the CSS Selector with Its Description
A →1, B →5, C → 3, D → 4
A → 2, B → 3, C → 1, D → 4
A → 2, B → 6, C → 4, D → 3
A → 5, B → 3, C → 2, D → 4
Match the CSS User Action Pseudo-Class with Its Effect
A → 4, B → 3, C → 2, D → 1
A →5, B → 4, C → 3, D → 2
A → 6, B → 2, C → 3, D → 4
A → 5, B → 2, C → 3, D → 6
Selects all elements
Selects all siblings after a specified element
Selects only the first sibling of a specified element
Selects only the last sibling of a specified element
focus
hover
active
checked
[attr]
[attr=""]
[attr=*]
attr[ ]
h1 h2 h3
h1+h2+h3
h1,h2,h3
h1>h2>h3
Selects the first child of an element
Selects all sibling elements
Selects the immediately next sibling of an element
Selects the parent of an element
Match the CSS Attribute Selector with Its Function
A → 2, B → 5, C → 3, D → 4
A → 2, B → 6, C → 3, D → 4
A → 5, B → 1, C → 3, D → 4
A → 2, B → 1, C → 3, D → 4
input:checked
input:focus
input:hover
input:active
Match the CSS Sub-Selector with Its Meaning
A → 2, B → 1, C → 3, D → 6
.(dot)
# (hash)
* (asterisk)
@ (at sign)
tag
id
class
both class and tag
input.required
input[required]
input(required)
input::required
E.class
E~F
E,F,G
.example
#example
element.example
example
:target
:selection
::selection
URO
ul > li
ul li
ul + li
ul ~ li
Name
ID
Class
Tag
None of the options
E#id
.class
#id
:default
:%
:disabled
:root
:nth-of-type(n)
:only-child
none of the mentioned
h1.hover
h1*hover
h1:hover
h1-hover
Universal Selector (*)
Tag Selector
Class Selector
ID Selector
Tag > Class > ID
Class > Tag > ID
ID > Class > Tag
Universal > ID > Class
mouse over
mouse hover
mouse move
:nth-child(last)
:last-child
:nth-last-child(1)
Combinator selector
Pseudo Class selector
Pseudo elements selector
Attribute selector
article
html
div
type
None of the above
:element
:empty
:enabled
#classname
.classname
element.classname
*classname