Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ 404 Error - file not found - not making sense

Posted by: Dale Francis Oct 16 2020, 07:19 PM

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.

Posted by: pandy Oct 16 2020, 07:24 PM

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?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)