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 Add a New Page

Michael Jasinski
Michael Jasinski
7,427 Points

Add my own profile photo?

Hi Everybody,

So I know how to add photos to the file and I have added a few of my own. When I add mine michael.jpg I can not get the photo to pull over. When I put nicks picture back in it works. My code is below on my about page.

<section> <img src="img/micahel.jpg" alt= "Photo of Michael Jasinski" class= "profile-photo"> <h3>About </h3>

2 Answers

There is a spelling error and also some issues with the properties, try this:

<img src="img/michael.jpg" alt="Photo of Michael Jasinski" class="profile-photo"> 

Also, make sure you've uploaded the michael.jpg image to the img folder.

Michael Jasinski
Michael Jasinski
7,427 Points

thank you. I can't spell my name. I should get some sleep.

Flavio Carvalho
Flavio Carvalho
26,636 Points

Hi Michael,

Is "micahel.jpg" spelled corretly? "michael.jpg" perhaps? And is the extension correct .jpg not .png or something else?

Check the path too, if the image is actually inside img/

See if that helps and let us know! :)

Michael Jasinski
Michael Jasinski
7,427 Points

Yeah so that is embarrassing!!! Cannot spell my own name.

That did the trick. Thank you for the help.

Flavio Carvalho
Flavio Carvalho
26,636 Points

Hehehe, happens to all of us Michael... happens to all of us! Glad you find a fix.