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
Giulia Basile
322 PointsBuilding a website
I'm building the website, but where can I find the material I need to download? I installed Sublime2 but I don't have the images that are required to build the website.
10 Answers
Adam Lawler
3,377 PointsWhen watching a video you can scroll down the page a little, and there should be a section on the right side of the page labeled "Downloads". In that section is a link called "Project Files". Click this link and it should download what you need.
Giulia Basile
322 PointsI did. But even if now I have the files on the computer, when I refresh the page of the website Im building it doesn't show the picture, but there's a question mark.
R E
2,974 PointsTo display an image you want the following code in the body of your html:
<img src="img_directory">
img_directory is just the location of the image on your computer.
Giulia Basile
322 PointsI followed the video where it said to write img/logo.gif
R E
2,974 PointsIf you downloaded the files, they're probably saved in a different directory than "img." Find where the files are saved on your computer (probably downloads) and use that as your directory instead.
Adam Lawler
3,377 PointsIf you have the folder name "img" in the same place as your HTML document, then that code should work and look like this:
<img src="img/logo.gif">
Make sure you have the "img" folder saved in the same place as your HTML document.
Giulia Basile
322 PointsI moved everything in the same folder but it still doesn't work. I think I have to do everything again! Then, in the challenge activity after the video it asks to write an image directory with an image 'cupcake.jpg, would that be "img/'cupcake.jpg'" ?
Adam Lawler
3,377 PointsIf I understand the challenge activity then the code should look like this:
<img src="img/cupcake.jpg">
Giulia Basile
322 PointsI did it, thank you so much guys!
Ryan Carson
23,287 PointsThanks for being so helpful Adam :)