# I'm finding it difficult to understand Css selectors

**URL:** <https://forum.freecodecamp.org/t/im-finding-it-difficult-to-understand-css-selectors/397442>\
**Category:** General\
**Created:** [June 1, 2020, 5:42pm UTC](https://forum.freecodecamp.org/t/im-finding-it-difficult-to-understand-css-selectors/397442 "2020-06-01T17:42:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uwemneku](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/uwemneku/32/150257_2.png) [@uwemneku](https://forum.freecodecamp.org/u/uwemneku)\
**Post date:** [June 1, 2020, 5:42pm UTC](https://forum.freecodecamp.org/t/im-finding-it-difficult-to-understand-css-selectors/397442/1 "2020-06-01T17:42:53Z")

</div>

Can someone please explain the different variations of Css selectors and what they mean. I do understand the basic ones like class, id and tag selectors but what’s the difference between say I have two classes “a” and “b”, what does these selectors mean.  
. a .b  
.a + .b  
.a, .b  
.a\>.b

There’s still a bunch of others like the ones using “”. (The MDN reference on this topic is not really broad).

Thanks

---

<div class="post-metadata">

**Author:** ![bbsmooth](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bbsmooth/32/203556_2.png) [@bbsmooth](https://forum.freecodecamp.org/u/bbsmooth)\
**Post date:** [June 1, 2020, 6:07pm UTC](https://forum.freecodecamp.org/t/im-finding-it-difficult-to-understand-css-selectors/397442/2 "2020-06-01T18:07:44Z")

</div>

I used to reference this page all the time until I was able to memorize them all:

> **[The 30 CSS Selectors You Must Memorize](https://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048)**
>
> Learn CSS: The Complete GuideWe've built a complete guide to help you learn CSS, whether you're just getting started with the basics or you want to explore more advanced CSS.CSS SelectorsSo you...

---

<div class="post-metadata">

**Author:** ![uwemneku](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/uwemneku/32/150257_2.png) [@uwemneku](https://forum.freecodecamp.org/u/uwemneku)\
**Post date:** [June 1, 2020, 6:36pm UTC](https://forum.freecodecamp.org/t/im-finding-it-difficult-to-understand-css-selectors/397442/3 "2020-06-01T18:36:50Z")

</div>

This article was more than helpful. Thanks a lot

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:51pm UTC](https://forum.freecodecamp.org/t/im-finding-it-difficult-to-understand-css-selectors/397442/4 "2021-06-01T18:51:39Z")

</div>

Closed on June 1, 2021, 6:51pm UTC


