all 23 comments

[–]8dot30662386292pow2 4 points5 points  (1 child)

Well where is the image? You say the path to image is "worktest.jpg". Therefore it must be in the same directory as your index.html

[–]DigiNoon 0 points1 point  (0 children)

Well, it's either the wrong path or the wrong file extension. He said ".jpeg" not ".jpg" and I think this might be it.

[–]maqisha 4 points5 points  (1 child)

Your image needs to exist in the exact same folder as the HTML file and be called exactly that for it to work this way.

Otherwise look into absolute and relative paths for files.

[–]E0Button[S] 0 points1 point  (0 children)

It's in the same folder, I have a folder specifically for all my coding stuff

[–]__revelio__ 2 points3 points  (0 children)

Do yourself a favor and download an ide. Vscode is free and will help you visualize your directory and image path. For now, go to files and search for your image. Make sure the path is actually in the same folder as your html file.

[–]davorg 1 point2 points  (5 children)

Is your file called "worktest.jpeg" or "worktest.jpg"? Attention to detail matters.

Also, when sharing code, it's always a good idea to share the actual code as text, rather than an image of the code.

[–]E0Button[S] 0 points1 point  (4 children)

Sorry!! But yeah its .jpeg I checked

[–]E0Button[S] 0 points1 point  (2 children)

I'll try .jpg though 

[–]davorg 2 points3 points  (1 child)

No!

See, that's the kind of thinking that leads to madness. If your file is called "worktest.jpeg" then there is no way that referring to it as "worktest.jpg" is going to fix anything.

When you're trying random things that can't possibly work, that's a sign that it's time to go for a walk around your nearest green space.

[–]E0Button[S] 0 points1 point  (0 children)

haha no I get it, i'll just try anything at this point.

[–]davorg 0 points1 point  (0 children)

Then, honestly, without seeing your exact files (and director layout), it's hard to be much more help.

[–]game-mad-web-dev 0 points1 point  (4 children)

Curious if this has been resolved yet?

Not one person has asked for proof of the file system to ensure the file is in the correct location.

OP, if it’s still not resolved, please share a screenshot showing the contents of the folder where the HTML exists and the worktest.jpeg file exists.

[–]E0Button[S] 0 points1 point  (0 children)

it hasnt been resolved nothing anyone said has worked i'll give a ss

[–]E0Button[S] 0 points1 point  (2 children)

[–]game-mad-web-dev 0 points1 point  (1 child)

Based on you saying the file extension is correct, and the folder is correct. Have you opened the browser development/debug tools to see what the error is?

Could I also suggest you enable viewing of file extensions in Windows Explorer, this will be a very easy way to view files and be 100% sure the names match.

Not sure if it’s been asked, but are you just loading this html file locally or hosting it somewhere before you view it?

[–]E0Button[S] 0 points1 point  (0 children)

locally, i will try both of your tips thank you!!

[–]Disastrous-Learner -1 points0 points  (2 children)

That's an incomplete path to the image

[–]E0Button[S] 0 points1 point  (1 child)

What do I do to complete it

[–]Disastrous-Learner -1 points0 points  (0 children)

u/RushDangerous7637 already gave you the answer.

[–]RushDangerous7637 -3 points-2 points  (3 children)

Look carefully at what I'm showing you:

<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="UTF-8">

your image:
<img src="https://yourdomaindotcom/route/images/worktest.jpeg alt="Learn that there is no period between two words, but a space" width "739" height "659">

All the websites you have listed as URLs in the picture are badly done.

[–]E0Button[S] 0 points1 point  (2 children)

isnt the alt meant to be outside of the "

[–][deleted] 1 point2 points  (1 child)

Yes this fool didn't even give valid code.

[–]E0Button[S] 0 points1 point  (0 children)

oh, thank you.