



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CSS selectors cheatsheet by nana jeon is licensed
under a Creative Commons Attribution-NonCommercial-NoDerivatives
4.0 International License.
# >. , * + ~ : [ ] ( ) { }
CSS selectors cheatsheet
Selector name HTML CSS Infographic
a
b c
a b a b
#a
b c
a b a b
a
b c
a b a b
a b c
<..id=โaโ/> <..id=โbโ/> <..id=โcโ/>
#a {} #a^ #b^ #c
<.. class=โaโ/> <.. class=โbโ/> <.. class=โcโ/>
.a {} .a (^) .b .c
b.x {} (^) a.x (^) b.x c.x
a b c d
a b c d
b c
a b a b
a
1 / 4 ยฉ Designed by nana jeon 2019
a b a b
a b a b a
b a
a b a b a
b a
a b a b a
b a
a b a b a
b a
a
b b c c d
a
b
a
b b
a
a b c
a
b b b
a b b
a
b c b.x c.x b.x c.x
a
b.x c.x b.x c.x b c
2n+
3 / 4 ยฉ Designed by nana jeon 2019
ยฉ Designed by nana jeon 2019
hello
a a a
b b
a b a.x b.x
a b a a
a a[x] a[y] a[z]
a a[x] b[y] c[z]
a a[x] a[y] a[z]
[x] [xy] [yz] [zx]
[x] [xy] [yz] [zx]
[x] [xy] [yz] [zx]
a
b
a
b b
a
a b c
a
b
a
b b
a
a b c
4 / 4
This cheatsheet is desinged for a quick search on CSS selectors. :) There are so many CSS selectors with unfamiliar symbols, >. , * + ~ [ ] etc, so I am often confused with how CSS selectors work. I wish this infographic helps you find proper CSS selectors. Print this lovely cheatsheet out and stick it on the wall. And if you need more details on CSS selectors, check out my blog at medium.com/@nana.
I would love to hear your feedback on how I can make it better. Please leave your comments on my twitter @nanacodesign. Thank you !!! ๊ฐ์ฌํฉ๋๋ค!!!
Happy
codesign
today!!!