Everything that I put on my site works correctly, but every image that I try to put on the site (except for the background) returns a 404 Not Found Error .
All my images are in "Project / src / assets / images", and I tried the following img tags in my html documents. Documents are located in "Project / src / app / tabs".
<img src="src/assets/images/image_name.jpg"> <img src="/src/assets/images/image_name.jpg"> <img src="./src/assets/images/image_name.jpg">
I set the background image for my page using css and it works. This is the selector and attribute that I applied:
background: url('assets/images/greybackground.jpg') no-repeat center center fixed;
How to add images to my HTML documents without 404 error?
source share