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 trialValerie Gordon
4,747 Pointswhen I add an image, why is a question mark displayed?
When I add an image, why is a question mark displayed?
4 Answers
Winnie E Tibingana
21,066 PointsHi Valerie, Please check and confirm the following:
- file path is correct
- file names are not misspelled
- file extension of the image
- files are not missing
Then Type it out everything instead of copying and pasting.
Let me know if it works.
Winnie E Tibingana
21,066 PointsHi Valarie, Please share the <img> tag in your markup. Below is an example of the <img> markup in use.
<img src="myImage.jpeg" alt="My Image Description" height="42" width="42">
Valerie Gordon
4,747 PointsHi Winnie, Thank you for responding.
<img src="img/vr-user.jpg" alt="User trying a VR headset">
I literally copied and pasted the <img> tag from the teacher notes, but I just get a box with a "?" inside where the image should be.
Nina Maxberry
10,630 PointsHi Valerie, First make sure you know where the file is located locally/virtual. If you are not sure, search locally with the file name vr-user.jpg (probably in your "pictures folder since the extension is .jpg). Once you discover the path of the image you can copy the path and paste it into your code.