동영상 강좌는 유튜브 채널 '웹학교'를 이용하시기 바랍니다.
CSS Diner 해답을 찾아보면서 CSS강좌에서 배운 Selector를 다시 정리할 수 있습니다.
https://flukeout.github.io/
- A
- A
- #id
- A B
- #id A
- .classname
- A.className
- Put your back into it!
- A, B
- *
- A *
- A + B
- A ~ B
- A > B
- :first-child
- :only-child
- :last-child
- :nth-child(A)
- :nth-last-child(A)
- :first-of-type
- :nth-of-type(A)
- :nth-of-type(An+B)
- :only-of-type
- :last-of-type
- :empty
- :not(X)
- [attribute]
- A[attribute]
- [attribute="value"]
- [attribute^="value"]
- [attribute$="value"]
- [attribute*="value"]