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 trial

HTML How to Make a Website Adding Pages to a Website Make an About Page

Thanks 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
Kate Hoferkamp
5,205 Points

Here is the proper code for the first task in that challenge:

<section>
        <img class="profile-photo" src="img/gratt.png" alt="A photo.">
</section>

I only see "</ section>" in your code block. Could you please repost the question with all of your code which is getting the error message?

No idea why my copied code does not show.

Here are instructions that go into detail on how to properly paste code into forum posts: https://teamtreehouse.com/forum/posting-code-to-the-forum

you guys are all wrong i typed it in and it doesnt work you dumbos

sorry that was so rude of me but it just doesnt work

try

<section> <img src="img/gratt.png" alt="Photograph of You" class="profile-photo"> </section>