The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 404 Error - file not found - not making sense, 404 Error - file not found - not making sense
Dale Francis
post Oct 16 2020, 07:19 PM
Post #1





Group: Members
Posts: 4
Joined: 16-October 20
Member No.: 27,597



Hi, this is actually Angular code but it's really just an HTML bug. So I wrote:

<img src="src/app/photos/Monaco-and-Spirit.jpeg" alt="Cats Pic">

or
<img src="Monaco-and-Spirit.jpeg" alt="Cats Pic">

or
<img src="http://localhost:4200/src/app/photos/Monaco-and-Spirit.jpeg" alt="Cats Pic">

or
<img src="./photos/Monaco-and-Spirit.jpg" alt="Cats Pic">


I've posted this .jpg image all over the place and any one of the above 4 options should have worked. But still I receive the 404 "file not found" error and I can't figure it out or get past it. Any help? $70 is yours if you can put me straight. Thank you. Dale.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 16 2020, 07:24 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



So is this on a server you run on your own machine (since you use localhost in one of the URLs)?

Where is the image in relation to the HTML document?

Is this on Windows or Linux or something else?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th March 2024 - 09:42 PM