adyo4552 adyo4552 - 1 month ago 24
HTML Question

img src doesn't find image, prints alt

<img src=“…/images/adam_photo.jpg” alt=“dont_print_this_damnit” />


Displays “dont_print_this_damnit”

webfile located: file:///Users/Adam/Documents/adam_webfolder/adam_webfile.html

image located: file:///Users/Adam/Documents/adam_webfolder/images/adam_photo.jpg

I don't understand why this isn't working. Do you?

Answer Source

Try this :

<img src="images/adam_photo.jpg" alt="dont_print_this_damnit" />