+ 1

Why don't my img tag work

<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8" /> <title>first</title> <link rel="stylsheet" type="text/css" herf="./css/style.css"> </head> <body>. <img src="/Internal storage/js/Js/Me.jpg" height="150px" width="150px" border="1px" alt="" /> </body>

31st Oct 2018, 7:45 PM
Jaja-Dia
Jaja-Dia - avatar
9 Antworten
+ 2
If mean that you want the image to be seen by the public then you need to have the image in a public place. If I want to show someone a cat image I would use the code below. This is just a random cat picture from google. !DOCTYPE HTML> <html> <head> <meta charset="UTF-8" /> <title>first</title> <link rel="stylsheet" type="text/css" herf="./css/style.css"> </head> <body>. <img src="https://images.pexels.com/photos/104827/cat-pet-animal-domestic-104827.jpeg?auto=compress&cs=tinysrgb&h=350" height="150px" width="150px" border="1px" alt="" /> </body>
31st Oct 2018, 9:07 PM
Mike
+ 4
and you write herf instead of href
31st Oct 2018, 9:08 PM
Anthony Van Den Ostende
+ 2
order mostly it's in the same folder as the html and is the path this part. /internal storage/js/JS
31st Oct 2018, 9:04 PM
Jaja-Dia
Jaja-Dia - avatar
+ 1
I am going to guess your path is wrong some how. Double check it is working but that looks like a local path so if you make this public we might not be able to see the image anyway.
31st Oct 2018, 7:54 PM
Mike
0
I think it's path also can u give me any tips
31st Oct 2018, 8:56 PM
Jaja-Dia
Jaja-Dia - avatar
0
What do you need tips on?
31st Oct 2018, 8:58 PM
Mike
0
do you try to use that code on sololearn ?
31st Oct 2018, 9:07 PM
Anthony Van Den Ostende
0
awesome I got a pic to post
31st Oct 2018, 9:55 PM
Jaja-Dia
Jaja-Dia - avatar
0
How to use local file images of your phone?
7th Oct 2020, 11:04 AM
minal mukarande
minal mukarande - avatar