In my project users can enter the URL of a website and the system goes and fetches all images from this website. Because the src
of the image can be relative, the system "normalizes" it, so:
Now take a look at this page if you may:
http://www.presentkuriren.se/presenter/4/728/Karlek/Pasta---hjartan.html
If you have a look at the source code, the main image is implemented as <img src="prodbilder/large/JJI10002.jpg"...
This would lead me to the conclusion that the absolute path is http://www.presentkuriren.se/presenter/4/728/Karlek/prodbilder/large/JJI10002.jpg, which it is not. It's http://www.presentkuriren.se/prodbilder/large/JJI10002.jpg and all browsers seem to understand that and display it correctly...
I'm slightly baffled and feel like I'm missing something obvious... please point it out to me!
Img src Not Working That means, when a web page loads, the browser has to retrieve the image from a web server and display it on the page. The broken link icon means that the browser could not find the image. If you've just added the image, then check that you included the correct image URL in the source attribute.
There's the <base />
tag in the head:
<base href="http://www.presentkuriren.se/">
So all relative URLs (from images, links, ...) are relative to this one!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With