H.elpme
H.elpme

Reputation: 1

The image wont open on html?

I am trying to add these Images to html but they it will not open, I have tried changing the name along with other methods.

<img src="/Pictures/cycling_plus.jpg" alt="HTML5 Icon" style="width:128px;height:128px;">


<img src="Pictures/robotjuice.jpg" alt=""Robot Header" id="headerIMG" />

Upvotes: 0

Views: 46

Answers (2)

Elharony
Elharony

Reputation: 981

There are a few mistakes here:

  1. /Pictures/imageName.jpg isn't equal to Pictures/imageName.jpg
  2. alt=""Robot Header" should be alt="Robot Header". However, this won't affect displaying the image by any means!
  3. Check your Browser Console. Press F12 from your keyboard on your browser, then choose Console from the menu. You will see an error like this: Failed to load resource: the server responded with a status of 404 (Not Found)

Developer Tools Console

After making sure that you've fixed the 3 mistakes above, your images would be displayed without any issues.

If you couldn't fix it, please take a screenshot of your Website Files, and your HTML Code as well

Upvotes: 0

aFerrer
aFerrer

Reputation: 326

May be alt=""Robot Header" is breaking your code because you have an extra ". Also the first image is missing the final "/" but that shouldn't affect.

Upvotes: 1

Related Questions