Yoosuf
Yoosuf

Reputation: 892

Image not displaying in HTML webpage

I have opened this webpage in all browsers, but none of them display the image. It only leaves an empty space in that area, however if you right click on that area then the typical menu appears. When I choose open image in new tab, it doesnt display anything at all, in spite of the picture being stored in the correct folder

The code used here is,

<td colspan="2" rowspan="2">
    <img src="images/advert1.jpg" width="192" height="253" alt="">
</td>

However if I replace the path as

"C:/wamp/www/images/advert1.jpg" 

Then it shoes a small box in that area, yet the picture is not displayed

Upvotes: 1

Views: 5471

Answers (3)

H.Perera
H.Perera

Reputation: 1

The same problem happened to me first, so I again saved the file on another location in the computer, then the browser starts displaying the image. try saving your file and the image on a separate file and save them on a different location.

Upvotes: 0

Keishaun
Keishaun

Reputation: 1

C:\Users\ then put whatever your profile name is and wherever the image is saved .png or .jpg

Upvotes: 0

matzahboy
matzahboy

Reputation: 3024

There's nothing wrong with your syntax (that I can see). Make sure that the image exists at that path and that is has the correct unix permissions (assuming that you are running a unix based system). Any images much be readable by the world, not just you.

Upvotes: 1

Related Questions