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 trialLee Ann VanWinckel
1,480 PointsThanks for your help. Here are the challenge and code that are getting an error message:
Thanks in advance for your help.
Add the profile picture "img/gratt.png" inside the section element. Then, write a description in the alternate attribute and add the class "profile-photo" to the image.
<section> <a href="img/gratt.png"> <img src="img/gratt.png" alt="Profile Pic" class="Profile photo"> </a> </section>
5 Answers
Kate Hoferkamp
5,205 PointsHere is the proper code for the first task in that challenge:
<section>
<img class="profile-photo" src="img/gratt.png" alt="A photo.">
</section>
Adam Tatusko
16,589 PointsI only see "</ section>" in your code block. Could you please repost the question with all of your code which is getting the error message?
Lee Ann VanWinckel
1,480 PointsNo idea why my copied code does not show.
Adam Tatusko
16,589 PointsHere are instructions that go into detail on how to properly paste code into forum posts: https://teamtreehouse.com/forum/posting-code-to-the-forum
ceecee yeretsky
1,578 Pointsyou guys are all wrong i typed it in and it doesnt work you dumbos
ceecee yeretsky
1,578 Pointssorry that was so rude of me but it just doesnt work
MUZ141116 Tafadzwa Paza
12,893 Pointstry
<section> <img src="img/gratt.png" alt="Photograph of You" class="profile-photo"> </section>