0

I was reading an article at
https://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048

When you check out the demo at Section 17, you get this selector:

input[type=radio]:checked + label {
  color: blue;
}

Section 17 covers the pseudo class selector, but this selector seems like an adjacent selector to me. What would you call it?

Pang
  • 9,564
  • 146
  • 81
  • 122
WTLP2016
  • 1
  • 1

2 Answers2

2

I don't think it is called anything, it is just a combination of a pseudo class (:checked) and a adjacent sibling selector (+ label). Correct me if I'm wrong.

Carl Binalla
  • 5,393
  • 5
  • 27
  • 46
1

The :checked bit is a pseudo class selector and the + bit is the adjacent selector

derp
  • 2,300
  • 13
  • 20