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 trialvalentina cappellari
656 Pointsh2 and h3 class not applying
My class for the image works but not for the h2 and h3. I compared them and tried different things but still not applying. Do you know what might be the mistake here? https://w.trhou.se/2z0qaa8kwe
1 Answer
Travis Alstrand
Treehouse Project ReviewerHey valentina cappellari !
Thanks for providing a Workspace Snapshot! Very very helpful!!
I'm not sure if you're referring to your resume.html
or your index.html
, but these were my findings...
- Line 5 of
resume.html
is missing the closing/>
at the end to close off your stylesheet<link>
tag. - If you were referring to this file, I don't see any styles in
resume.css
targeting yourh2
andh3
. I do see styles added to classes named.descr-1
and.occupation
, but these styles still need to be added to your HTML elements inresume.html
. For example, line 11 could be...html <h2 class="occupation">Web developer</h2>
After applying that class, saving your Workspace, and previewing in the browser, you should see your d
in "Web developer" become capitalized D
.
While I'm here, I would highly recommend utilizing one stylesheet for the whole site with your styles.css
, importing this in all of your HTML file's <link>
tags and adding all of your styles in this one stylesheet.
This way, styles seen on index.html
which are written in styles.css
can easily be brought over to other web pages by simply adding the same class names to your HTML Elements
I hope this helps out!
valentina cappellari
656 Pointsvalentina cappellari
656 PointsThanks a lot for your help! very helpful :D
Travis Alstrand
Treehouse Project ReviewerTravis Alstrand
Treehouse Project ReviewerYou're very welcome!