Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Similar to ID selectors, class selectors let us target elements based on their class attribute. The main difference between a class and an ID selector is that IDs are unique and theyβre used to identify just one element on the page, whereas a class can be used to classify and target more than one element. This makes classes more flexible than IDs. Let's see how they work.
Further reading
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up