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!
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

Vaishali Chauhan
221 PointsImage Gallery Content
I've been following the path of "How to make a website" section and I'm currently on the "Add Image Gallery Content" video. I want to use my own images and I've copied the code exactly as it shows in the video but when i hit the preview button, none of the text or images are showing up. Please advice me on how to resolve this issue.
1 Answer

William Elliott
Courses Plus Student 5,331 PointsTo get an image to appear correctly make sure your img tag has the following syntax
Examples:
- Syntax
- Adding image to file in root directory
- Adding image to file not in root directory ( Notice here you must step out of the myfiles directory to get to the img directory to access the image file)
<img src="<PATH_TO_IMAGE>/<IMAGE_NAME_WITH_EXTENTION>">
<img src="img/myPhoto.jpg">
<img src="../img/myPhoto.jpg">
William Elliott
Courses Plus Student 5,331 PointsWilliam Elliott
Courses Plus Student 5,331 PointsTook me awhile to get this into a format to show the HTML, never used Markdown before