Selector type (dot vs. no dot)

I try to use the right start (‘.’ or no ‘.’) for creating a new selector, yet, I feel I make the wrong choice more than 50% of the time!
So, my question: how does one know if a dot is used or not?

Thanks for the thoughts.

In CSS, that is the “class” selector. It selects an element by class name.

.something {...}

Will only select html elements that include class="something".

So simple! Much of what we do, I view or think this is going to be a hard lesson and I confuse my self.

Thanks for your reply!

Searching for an answer is often harder work than understanding the answer. You got this!

1 Like