+ 11

In HTML; when I write the code of image,it doesn't appear in page why ?!

The code is 💯 right..icon of image appears but image itself doesn't appear

3rd Jun 2019, 9:20 AM
Maryam
Maryam - avatar
16 ответов
3rd Jun 2019, 9:48 AM
Bug Slayer
+ 9
Y.K amazing that's exactly what I meant...many thanks
3rd Jun 2019, 11:08 PM
Maryam
Maryam - avatar
+ 9
Boris Sonia Thanks a lot for this solution , I will try it
3rd Jun 2019, 11:09 PM
Maryam
Maryam - avatar
+ 6
Try to put the directory of the file correctly and check the code is any mistakes are there.if any problems are there use "alt" to check it code is correct or wrong
4th Jun 2019, 4:49 PM
M.MANIVANNAN
M.MANIVANNAN - avatar
+ 5
https://code.sololearn.com/WNBwM1jn69pF/?ref=app This is how we can insert image through html 😁😇
4th Jun 2019, 8:55 AM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 3
Maryam make insure that format of pic is correct
3rd Jun 2019, 9:28 AM
Najmuddin Ansari
Najmuddin Ansari - avatar
+ 3
.png .jpeg .gif or other
3rd Jun 2019, 9:29 AM
Najmuddin Ansari
Najmuddin Ansari - avatar
+ 3
Does it work for you now?
3rd Jun 2019, 11:32 AM
Sonic
Sonic - avatar
+ 3
First check the directory of image file.For convenient keep the image in same folder as your HTML file.Secondly, check the extensions are correct or not (like .jpg , .png , .jpeg).If it's correct then your web browser might be not supporting the image , so always give alt, in case image is not displayed you can give any statement in place of image using alt attribute.
4th Jun 2019, 7:49 AM
Pranjal Dahal
Pranjal Dahal - avatar
+ 2
Try to keep the image file in the same directory of the HTML file.
3rd Jun 2019, 10:21 AM
Anurag
Anurag - avatar
+ 2
At first i was in the same shock but now am doing great with it because i use Dropbox. Dropbox creates links for images an videos and copies them for you, which you will paste in the code you write, try and see Go to the appstore, download Dropbox upload your images and videos and there, your set
3rd Jun 2019, 7:55 PM
Boris Sonia
Boris Sonia - avatar
+ 1
The img tag must has alt as atribute!
3rd Jun 2019, 10:39 AM
CodeFu
CodeFu - avatar
+ 1
w3schools.com/tags/tag_img.asp
3rd Jun 2019, 4:14 PM
Roj Serbest
+ 1
html
16th Jun 2019, 12:56 AM
Anuar Nordin
Anuar Nordin - avatar
+ 1
@Anurag you are not true. w3schools.com/tags/tag_img.asp
16th Jun 2019, 12:02 PM
Roj Serbest
0
📤 Roj S. Kerîm 📥 wdym it's not true.. when I started with HTML sometimes used to put the IMG file in more outer directory than the main html file. Thought that could be the case here
16th Jun 2019, 12:10 PM
Anurag
Anurag - avatar