Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.