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

Adding Gallery Images

When I typed in the code that allows me to add the first image to the HTML(web design) track and click save, then preview my work my image is not appearing. It shows as a box with an "X" inside it. I typed the code exactly like Nick could there be another reason by image is not showing?

5 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Alaina;

Below the box in which you type a question or response there is a link to the "Markdown Cheatsheet" which shows how one enters code into forum discussions.

I'm still new to this. Still trying to get the hang of it. I am not sure I understand how to use the Cheatsheet.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Please post your code so we can take a look.

I am typing <img src="img/numbers-01.jpg" alt='"> is this what you were looking for?

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Alaina;

Worse case scenario, put your HTML code here (cut and paste) and folks can take a look. It won't necessarily be formatted like it would be with the Cheatsheet styling, but it will help.

Ken

<img src="img/numbers-01.jpg" alt=''>
Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Your code looks good. An "X" for an image can mean that the browser cannot find the image. Are you sure the path name to the image is correct, or is this for one of the code challenges?

Yes this is the path name. I typed it exactly how Nick said to do it. His imaged appeared and mine did not.

Are you sure you have an image named "numbers-01.jpg" inside your "img" folder ?

Yes, I downloaded the images directly from the downloads for that stage. And drag and dropped them into workspace. I did not change or modify anything with the images.