Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Saud Tauqeer
Courses Plus Student 8,099 Pointswhy p.description ? wouldnt just .description work?
3:50 video mark. code line number 2.
3 Answers

Niclas Hilmersson
8,296 Pointswell p.description means target all <p> tags with a classname of "description" in the document.

Niclas Hilmersson
8,296 PointsYes exactly!

Saud Tauqeer
Courses Plus Student 8,099 PointsThanks again for explaining it to me i was lost for a while

Niclas Hilmersson
8,296 PointsYes it would. But why he is using that is because of specificity. He just wants to be very specific on what he targets to not cause problems in the future if you add different elements with the same class.

Saud Tauqeer
Courses Plus Student 8,099 PointsSo p.classname means all the classes which are in the <p> tag?

Saud Tauqeer
Courses Plus Student 8,099 PointsAll the classes as in whatever the class name is specified
Saud Tauqeer
Courses Plus Student 8,099 PointsSaud Tauqeer
Courses Plus Student 8,099 PointsSo if there is a <h1> which also has a class of description. It wont be targeted right? Because p.desciption will explicitly target description in p tag across the document.