Having some trouble displaying an image on my website, despite having successfully done so in the past for other projects. The image is located in the same folder as my HTML file.
Here's what I've tried:
<img src="reddit.png"/>
<img src="./reddit.png"/>
<img src="../reddit.png"/>
<img src="D:project\src\components\reddit.png"/>
<img src="D:project/src/components/reddit.png"/>
Thinking it might be a tag issue, I also attempted:
<img src="https://faroutmagazine.co.uk/static/uploads/2020/02/George-Harrison-Let-It-Be-768x464.jpg"/>
The external image loaded without a problem. I even tried moving the image to an "images" folder and adjusting the path to "/images/reddit.png", but that didn't solve the problem.
(Note: I am working within a JavaScript React component, in case that makes a difference in how the HTML works)