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 Build a Simple Website Text Editors and HTML Images and Lists

Julio Viales
Julio Viales
1,757 Points

Can´t see the logo image

Where am I supposed to save the logo image so that it shows up when I "call it" in my webpage?

3 Answers

There are a few ways you can do that

  • save it in the folder where your index.html or main_page.html file is. So if you are building you website in a folder called Demo and you home page is main.html and you have an logo in the same folder Demo called logo.jpg (png) in that case all you have to do is refer directly to the image like

    <src img="logo.jpg" />
    
  • if you want to be more organized and save all you pictures in a sub folder called Images inside Demo then you would call your images like

    <src img="Images/logo.jpg" />
    
  • you could also save it completely outside Demo folder too, but then again that is not quite common or practised unless your logo is stored in the cloud and you can use the full web address in the src attribute of the image tag.

Hope that helps

Julio Viales
Julio Viales
1,757 Points

It works now! Thanks a bunch!

It's best to save all your images in a separate folder, inside your root folder where you store your index.html file. You can name your image folder whatever you like.

I hope this helps, I'm not sure that I fully understood your question.

Julio Viales
Julio Viales
1,757 Points

It works now! Thanks a bunch!

Julio Viales
Julio Viales
1,757 Points

It works now! Thanks a bunch Kari and Gunjeet! :)