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 trialTerrence Wells
14,609 PointsWhat's the point of targeting elements that don't exist in the source code?
I don't understand the practicality of that.
1 Answer
Joe Dayvie
11,956 PointsTerrence,
Generally that is not good practice and if you do not have an element in your code, then you should not be using it. With that said, there are sometimes situations where you would have certain code in your CSS file but may not notice it being used in the HTML document (example: jQuery).
Joe
Terrence Wells
14,609 PointsTerrence Wells
14,609 PointsOk thanks!