Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJoseph Longo
1,074 PointsTwo "A" selectors?
I noticed in your CSS code you have two "A" selectors. Why is that?
You have the following:
a { text-decoration: none; }
and later down in the file you have:
a { color: #6ab47b; }
Wouldn't it be better practice or coding technique to just do this?
a { text-decoration: none; color: #6ab47b; }
1 Answer
geoffrey
28,736 PointsBoth works, but I agree, It's probably better to gather all of them within a single selector. As the selector is the same !
Katsumi Suno
4,194 PointsKatsumi Suno
4,194 PointsI was thinking the same, but after this lesson (Organzise CSS with Comments) it made sense again to separate them if you like to group all the color rules together...