HTML <IMG src | Sololearn: Learn to code for FREE!

0

HTML <IMG src

Hi, I do not understand why <img src="tortas.jpg" > dont work for my notepad ++ and i dont see fotos. All my photos a broke in website PLEASE HELP. Sory for my English skills.

10/21/2018 5:29:16 PM

Arminas Pocius

14 Answers

New Answer

+6

After Gabrielės ft, you have used wrong sign. Is it so in your code also ?? Or if it is correct and it is still not working then can you post the code here ??

+5

Check whether the location of your image and file is in same folder or not. This can be a reason. For ex, if your html file is in a folder x and image is in folder y, then you have to specify full path but if they are in same file, you don't need to specify full path.

+5

Your code has errors. <center> tag is not supported in html5. And what is <p1>? There is <p> tag not p1. And in img, try doing this : <img src=""/> Put that slash. Once I was working in atom and I forgot that and I faced problems.

+4

Arminas Pocius So, keep both of them in one folder and then image will be loaded.

+4

Arminas Pocius If your image is in a folder in local disc C, do: <img src="C:/folder name/foto.jpg"> Basically, open my this PC (if you are using windows), find your image file. Open the folder in which your image is. Click on the ribbon and copy the location of the image. Paste that location in the value of img tag.

+1

Thanks for everyone, works now!

0

your image is in same directory of html file?

0

Thanks for answers, No my html file is in one folder and my img.jpg in other folder. I try to do ewrithing, but i cant in solo learn to.

0

If my img is on dekstop i do like this: <img src="foto.jpg" > If my foto in folder i do like this: <img src="folder name/foto.jpg" > But dont work

0

like this ? /image .. image.jpg /html .. index.html if it is ../image/image.jpg or is it like this index.html /image .. image.jpg if this one try image/image.jpg

0

Try to put the image in same directory of html and open the html

0

dont work I try - <img src="C:\Users\armin\Desktop\Gabrielės\Gabrielės ft/20171010_103153.jpg">

0

Try to put the image in same directory of html and open the html I try this too Thanks for help frends My motivation for developing is disapear ;D

0

<!Doctype html> <html lang="lt"> <head> <title>Valgiaraštis</title> <!---Lietuvių kalba--> <meta charset="utf-8"> </head> <body> <center> <!--hideris--> <h1> Valgiaraštis </h1> </center> <br/>' <p1> labas </p1> <img src="C:\Users\armin\Desktop\Gabrielės\Gabrielės ft/20171010_103153"> </body> </html>