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

CSS How to Make a Website Adding Pages to a Website Add a New Page

Profile 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
PLUS
Shawn Williams
Courses Plus Student 4,462 Points

The HTML looks correct. Did you double check the file name and make sure that it is located inside the "img" folder?

Hey 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>

O i missed that, It was outside the actual ing folder... Thank you! Silly mistake.

Shawn Williams
PLUS
Shawn Williams
Courses Plus Student 4,462 Points

I 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.

dunno, it worked my way once i moved the file into the image folder....