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 trialRichard Külling
9,465 PointsWhere is the second class? (name)
why is only the .tag class shown, out of the two classes in the video, and no further explanation about why adjust the .tag class, and not the first class? There isn't even a .name class within the CSS code... Very confusing
1 Answer
Steven Parker
231,198 PointsThe "tag" class is shared by both the name and location, so styles applied to it will affect them both without repeating the settings.
The "name" class might not be currently used in the CSS, but it's available to make future styling that targets it exclusively convenient to implement.
Richard Külling
9,465 PointsRichard Külling
9,465 PointsOK, that's exactly the explanation that's missing in the video for people to see the dead end of the other tag, and not have loose ends dangling about. (id="myOpinion1") For all else it's a very clean beginners course though!! (class="myOpinion2")