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
PRO
Winnie E Tibingana
Pro Student 19,267 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.

Winnie E Tibingana
PRO
Winnie E Tibingana
Pro Student 19,267 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.

Nina Maxberry
Nina Maxberry
10,630 Points

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.