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 trialAlaina Kinnon
460 PointsAdding 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
Treehouse TeacherAlaina;
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.
Ken Alger
Treehouse TeacherPlease post your code so we can take a look.
Alaina Kinnon
460 PointsI am typing <img src="img/numbers-01.jpg" alt='"> is this what you were looking for?
Ken Alger
Treehouse TeacherAlaina;
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
Alaina Kinnon
460 Points<img src="img/numbers-01.jpg" alt=''>
Ken Alger
Treehouse TeacherYour 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?
Alaina Kinnon
460 PointsYes this is the path name. I typed it exactly how Nick said to do it. His imaged appeared and mine did not.
Aina R.
Courses Plus Student 1,527 PointsAre you sure you have an image named "numbers-01.jpg" inside your "img" folder ?
Alaina Kinnon
460 PointsYes, 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.
Alaina Kinnon
460 PointsAlaina Kinnon
460 PointsI'm still new to this. Still trying to get the hang of it. I am not sure I understand how to use the Cheatsheet.