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 trialnl9
1,478 PointsProfile photo in the about page
Hi!
I'm trying to link my profile picture to the about page, but its not working. Can anyone tell me what i'm missing? Heres the code:
<section>
<img src="img/nosson.jpg" alt="Photograph of Nosson Lipman" class="profile-photo">
</section>
Thanks. (By the way i do have a file called nosson.jpg)
5 Answers
Shawn Williams
Courses Plus Student 4,462 PointsThe HTML looks correct. Did you double check the file name and make sure that it is located inside the "img" folder?
Matthew Orndoff
9,018 PointsHey Nosson,
Your code should look like this:
<a href="about.html"><img src="img/nosson.jpg" alt="Photograph of Nosson Lipman" class="profile-photo"></a>
nl9
1,478 PointsO i missed that, It was outside the actual ing folder... Thank you! Silly mistake.
Shawn Williams
Courses Plus Student 4,462 PointsI misread and didn't see the linking part. I was only thinking about displaying the image. Matthew posted the correct code to create a link using that image.
nl9
1,478 Pointsdunno, it worked my way once i moved the file into the image folder....