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.

21st Oct 2018, 5:29 PM
Arminas Pocius
Arminas Pocius - avatar
14 Answers
+ 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 ??
21st Oct 2018, 5:55 PM
Arushi Singhania
Arushi Singhania - avatar
+ 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.
21st Oct 2018, 5:33 PM
Arushi Singhania
Arushi Singhania - avatar
+ 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.
21st Oct 2018, 5:59 PM
Arushi Singhania
Arushi Singhania - avatar
+ 4
Arminas Pocius So, keep both of them in one folder and then image will be loaded.
21st Oct 2018, 5:41 PM
Arushi Singhania
Arushi Singhania - avatar
+ 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.
21st Oct 2018, 5:47 PM
Arushi Singhania
Arushi Singhania - avatar
+ 1
Thanks for everyone, works now!
21st Oct 2018, 6:40 PM
Arminas Pocius
Arminas Pocius - avatar
0
your image is in same directory of html file?
21st Oct 2018, 5:33 PM
KrOW
KrOW - avatar
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.
21st Oct 2018, 5:39 PM
Arminas Pocius
Arminas Pocius - avatar
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
21st Oct 2018, 5:42 PM
Arminas Pocius
Arminas Pocius - avatar
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
21st Oct 2018, 5:43 PM
Taste
Taste - avatar
0
Try to put the image in same directory of html and open the html
21st Oct 2018, 5:51 PM
KrOW
KrOW - avatar
0
dont work I try - <img src="C:\Users\armin\Desktop\Gabrielės\Gabrielės ft/20171010_103153.jpg">
21st Oct 2018, 5:53 PM
Arminas Pocius
Arminas Pocius - avatar
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
21st Oct 2018, 5:55 PM
Arminas Pocius
Arminas Pocius - avatar
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>
21st Oct 2018, 5:56 PM
Arminas Pocius
Arminas Pocius - avatar