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 trialPARAG SHARMA
Courses Plus Student 2,383 PointsIs the "name" class has affect on <h1> tag ?
Mam, you mention that <h1> tag has two classes i.e tag & "name". "tag" class in css is being written directly but "name" class is written with "nav" class i.e ".nav .name {}". Is the "name" class has affect on <h1> tag ?
1 Answer
Adam Duffy
4,466 PointsThe class “.name” and “.tag” will both apply to the h1 element. Any element with a class “.name” or “.tag” will have the properties applied to them if specified in your CSS. You will learn more about applying multiple classes on elements as you continue.