Image works in the preview but not in the browser

I don’t understand I use the <img scr="url"> tag and the image is in the same directory as my index.html file. When I press spacebar on my MacBook it shows the image, but when I open the file it shows an icon representing a ripped document. Developer tools says ‘could not load image’. It is a .pdf file if that matters.

Hello, Confirm Whether you are using src or scr?
Because the correct one is “src”.

1 Like

Oh yeah sorry I meant src.

It’s not clear for me if your trying to include an image or pdf file. The <img> tag doesn’t support .pdf as it’s not an image.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.