Reputation: 1
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
Reputation: 981
There are a few mistakes here:
/Pictures/imageName.jpg
isn't equal to Pictures/imageName.jpg
alt=""Robot Header"
should be alt="Robot Header"
.
However, this won't affect displaying the image by any means!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)
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
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