<img> tag not showing image on website

I am working on my own website to host my portfolio but when I use my image tag, <img src=“/var/www/html/portfolio/portfolio-pictures/Montage.png” alt=“5 of me in a picture”> it only shows this. I have checked the permissions but it still isn’t working. Does anyone have any idea of how to fix this?


in cases like this it’s often likely that your path is the issue.

Depending on your host’s folder structure this part seems suspect: ‘/car/www/html/’ is that within a public folder or do you actually have a root level directory named “car”?

1 Like

Autocorrect, the path is /var/www/html

Where is the HTML file for that page located?

Assuming it’s in /portfolio, then try using

<img src="portfolio-pictures/Montage.png" alt="5 of me in a picture">

(I’m guessing at the issue here, as I can’t view your image. For some reason, I’m only getting a “download” option.)

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