CSS CSS Selectors Selectors - Beyond the Basics Attribute Selectors

Karla Gallegos
Karla Gallegos
5,189 Points

#container . form-contact

I don't know if I missed something somewhere, but why do we use a dot before .from-contact and a hash before #container. What is the difference when using the dot and when using the hash symbols in this video at 6:03 minutes?

1 Answer

A hash indicates you are selecting by id. A dot indicates you are selecting by class.