I'm just putting together my first website and for some reason I am having problems putting in an image.
My markup is as follows:
<p><img src="IMG_0769.jpg" width="200" height="160"
alt="Picture of Me"/></p>
For some reason, it won't load the picture, it just shows the box and the alternate. The picture with that file name is in the same folder as all the html/css files.
Your code looks fine. Are you sure it's actually a jpg file and in the same folder as your html file? Are you sure the jpg filename is correct? Can you see images on other web pages?
Yes, I can see images normally on the internet and i've tried changing the image name a few times.
Definitely a jpeg - got file extensions on. I can open the image and look at it in an image viewer, just doesn't seem to want to show it in the browser...
If you are getting the alternative text only and not the image the odds are your image path is completely wrong or you placed your file in the wrong place.
I assume you have also used the browser to directly open the image itself to double-check you have the correct path and that it displays.
It may also be useful to make sure you clear your cache and that you have saved your latest modified HTML file and do a forced 'reload/refresh' of the page. Make sure you are using the correct character case for the *.jpg if you have uploaded the files.
Bookmarks