+ 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>
9 Réponses
+ 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>
+ 4
and you write herf instead of href
+ 2
order mostly it's in the same folder as the html and is the path this part.
/internal storage/js/JS
+ 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.
0
I think it's path also can u give me any tips
0
What do you need tips on?
0
do you try to use that code on sololearn ?
0
awesome I got a pic to post
0
How to use local file images of your phone?