Having trouble loading an image file on my HTML code
The HTML code in 'index.js' looks like this:
<div id="myArea">
<img src="../public/images/image.png" height="50px" width="50px">
</div>
To troubleshoot, I double-checked the following:
- directory path
[public]
[images]
|__ image.png
[routes]
[views]
|__ index.js
app.js
- image file is 'image.png', not 'image.PNG'
- I already examined the image file and it seems to be fine. Moreover, multiple attempts to load other images using similar HTML codes have failed.
Any suggestions on how to resolve this issue?