My image is not displaying in the browser and yet I seem to specify the correct url. What might be the problem? Here is the image tag:
<img src="C:/wamp/www/simple/images/greener.png" alt="Grass" width="400" height="400" />
It only displays the alternative text “Grass”. Where could I be wrong? Help please.
My image is not displaying in the browser and yet I seem to specify
Share
That’s a link to a file. It should instead point to a
http://localhost...or use thefile:///protocol.(Note, I’m guessing
C:/wamp/www/is your webroot.)Or:
Note, both of these only work if you are accessing a local file using a local server or local file using a local file. If you want others to get to it, you need to use a valid domain name available on your network or the internet at large.