Image isn't displaying in the browser

My image is located in appName/public/images/brand.svg

And the file I am working in is appName/views/main.ejs

And my image source is

<img src='../../public/images/brand.svg'>

or

<img src='../public/images/brand.svg'>

I don’t know why it is not working. There is ‘NOT FOUND’ error. Is it because my path route is wrong or sth with svg file? I use chrome browser to see results. I checked for spellings errors and everything seems fine.

125 thoughts on “Image isn't displaying in the browser”

  1. Admiring the time and energy you put into your blog and detailed information you present.
    It’s awesome to come across a blog every once in a while that isn’t the same outdated rehashed material.

    Fantastic read! I’ve bookmarked your site and I’m including your RSS
    feeds to my Google account.

    Reply

Leave a Comment