Why is my image not showing up?

chairmanPC

Active member
Joined
Apr 19, 2021
Messages
38
Programming Experience
10+
Relatively new to ASP.NET here. I have created an ASP.NET Net Core project (empty form). IN the home page, there is an site image on top of the page title.

However, I did not see the image when I test-ran the site. Just the torn image icon.

The code below is my home page.

C#:
```
<div class="text-center">
    <img src="/Images/cat.png">
    <h1 class="display-4">Welcome to KoolKat!</h1>

</div>

The image files are created in a self-created Images folder under the folder of the project directory (/sources/repos/KoolKat to be specific). Did I do something wrong?
 
Try ~/Images/cat.png
 
Back
Top Bottom