:!(s)
:nth-child(s)
:not(s)
None of these
:root
:nth-oftype(n)
:only-child
class
id
type
None of the above
h1.all {background-color:red;}
h1 {background-color:red;}
all.h1 {background-colorred;}
.h1{background-color:red}
<p style="font-size:bold;">
p {text-size:bold;}
<p style="text-size:bold;">
p {font-weight:bold;}
div p
div.p
div + p
div ~ p
Separate each selector with a plus sign
Separate each selector with a comma
Separate each selector with a space
All of These
tag
both b) and c)
*test
#test
.test
test
article
html
demo
#demo
.demo
*demo
h1.hover
h1*hover
h1:hover
h1-hover
p h4 a { color: orange; }
p; h4; a { color: orange; }
p+a+h4 { color: orange; }
h4, a, p { color: orange; }
Seperate each selector with a star
p
p.style
p-style
.style
p.style span
p.style.span
p.style span*
none of the above
Hash
Plus
Dot
None
:selected
:link
:target
:enabled
Name
ID
Class
Tag
The universal selector
The Descendant Selector
The Class selector
The id selector