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 HTML Basics Images, Text and Links Captioning Images

when 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
Winnie E Tibingana
21,066 Points

Hi 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
Winnie E Tibingana
21,066 Points

Hi 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">

Hi 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.

Hi 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.