Image can't display in my browser. The urf and the name are right | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Image can't display in my browser. The urf and the name are right

7th Mar 2017, 9:55 PM
Nabil Ben Mansour
Nabil Ben Mansour - avatar
9 Answers
+ 10
<img src="img.png" width="50" height="50"></img>
7th Mar 2017, 10:41 PM
Shehab Amr
Shehab Amr - avatar
+ 2
try on different browser if not may be something wrong in your code
7th Mar 2017, 10:18 PM
Ayoub Bani
Ayoub Bani - avatar
+ 1
that's width not widht :)
7th Mar 2017, 10:26 PM
Geoffrey L
Geoffrey L - avatar
+ 1
my be the image is not a jpg try to verify your code serch for examples via google
7th Mar 2017, 10:37 PM
Ayoub Bani
Ayoub Bani - avatar
0
No 404 error in your browser console?
7th Mar 2017, 10:15 PM
Geoffrey L
Geoffrey L - avatar
0
in the same floder name image : logo1.jpg i write this code < img src="logo1.jpg" alt=" my frist photo " style=" width:40px;height:40px;">
7th Mar 2017, 10:25 PM
Nabil Ben Mansour
Nabil Ben Mansour - avatar
0
in browser i only see a border of my image with the alt text " my frist photo"
7th Mar 2017, 10:33 PM
Nabil Ben Mansour
Nabil Ben Mansour - avatar
0
Take care the case sensitive as well
7th Mar 2017, 10:40 PM
Geoffrey L
Geoffrey L - avatar
0
The browser shows you the alt text because it hasn't found the image. Either you have mispelled the name of the image or the image doesn't exist in the same folder.
7th Mar 2017, 11:27 PM
Joaquín González
Joaquín González - avatar