use of <img> in html
I have tried coding in html using with thier required attributes but when i run that code on a browser it does not display my image.the same problem is experienced by many of my classmates those who are using higher IE versions. HELP.
Replies
-
Techie EarthlingVerify the EXACT name of your file. Case Matters in HTML/The Web... and only some MS servers will let you get away with the wrong case. Other than that, if the image is in the same directory as your page, this should work.
Download attached file and extract it ! then open folder and double click on the html file ! its working on all the IE version, Chrome, Firefox, Opera And Safari.
Hope it will help !
Regards,
#-Link-Snipped-# -
rahul69
Check out this link and ensure that you are doing everything right:shailaja revathiI have tried coding in html using with thier required attributes but when i run that code on a browser it does not display my image.the same problem is experienced by many of my classmates those who are using higher IE versions. HELP.
HTML img tag
Good Luck!! -
Shailaja TiwariTHANKS .it's working fine for the image in the same directory but not for the images in other files outside the directory.and another query that i have is that IE is not displaying appropriate bgcolors/textcolors/hr-color.it is showing red for blue and green for red for other colors such as yellow/orangeetc.it is displaying as black.could u please explain why is it happenning so?
-
rahul69
Well that is unusual. Could u post the code which is giving such responses? It would be better to get to the root problem.shailaja revathiTHANKS .it's working fine for the image in the same directory but not for the images in other files outside the directory.and another query that i have is that IE is not displaying appropriate bgcolors/textcolors/hr-color.it is showing red for blue and green for red for other colors such as yellow/orangeetc.it is displaying as black.could u please explain why is it happenning so? -
Shailaja Tiwari
HERE'S MY CODE :rahul69Well that is unusual. Could u post the code which is giving such responses? It would be better to get to the root problem.
hello world .
protect and love animals and plants.
This problem is only with IE and not with other browers as mozilla and chrome.
and what about the image part?The link that you have provided above is known to me and it does not provide any solution to my problem with elements.
THANKS for your effort about this matter. -
[Prototype]
Which version of IE you're using? That thing works good on IE 9.shailaja revathiHERE'S MY CODE :
hello world .
protect and love animals and plants.
This problem is only with IE and not with other browers as mozilla and chrome.
and what about the image part?The link that you have provided above is known to me and it does not provide any solution to my problem with elements.
THANKS for your effort about this matter. -
Shailaja Tiwari
I am using IE6[Prototype]Which version of IE you're using? That thing works good on IE 9. -
rahul69
This code works well in IE8 too, maybe the problem lies in your browser settings.shailaja revathiHERE'S MY CODE :
hello world .
protect and love animals and plants.
This problem is only with IE and not with other browers as mozilla and chrome.
and what about the image part?The link that you have provided above is known to me and it does not provide any solution to my problem with elements.
THANKS for your effort about this matter.
Check that in Tools->Internet Options->General->Colors it should have Use Windows Colors as checked.
Also see that in Tools->Internet Options->General->Accessibility all the boxes are unchecked
And regarding the image part,older version of IE seems to only recognize image with its original format. For example if your image was originally in bmp format, u changed its extension to gif and then wrote src as gif , then it will not recognize your image. The solution is to again rename the extension to bmp and wrote src as bmp, then it will work. So it is better to use some other browser, or get the new version of IE. Hope it helps.๐
Good Luck!! -
Shailaja Tiwari
HEY thanks ,in IE //* ignore colors *// was checked.Rectified it and now getting the right color.rahul69This code works well in IE8 too, maybe the problem lies in your browser settings.
Check that in Tools->Internet Options->General->Colors it should have Use Windows Colors as checked.
Also see that in Tools->Internet Options->General->Accessibility all the boxes are unchecked
And regarding the image part,older version of IE seems to only recognize image with its original format. For example if your image was originally in bmp format, u changed its extension to gif and then wrote src as gif , then it will not recognize your image. The solution is to again rename the extension to bmp and wrote src as bmp, then it will work. So it is better to use some other browser, or get the new version of IE. Hope it helps.๐
Good Luck!!
and for image here's my code and i'm still not getting it.
this is an image example.
-
Techie Earthlingshailaja revathiHEY thanks ,in IE //* ignore colors *// was checked.Rectified it and now getting the right color.
and for image here's my code and i'm still not getting it.
this is an image example.
try using -
Shailaja Tiwari
yes , i got it ;but only in chrome mozilla is still not suppporting.anyway,it does'nt matter for mozilla .THANK YOU VERY MUCH .๐Techie Earthlingtry using -
Techie Earthling
Any Time Dear Friend CEans are always ready to help you ๐shailaja revathiyes , i got it ;but only in chrome mozilla is still not suppporting.anyway,it does'nt matter for mozilla .THANK YOU VERY MUCH .๐
and I request Moderators (@#-Link-Snipped-#) to mark this Discussion as solved !๐ -
rahul69
For Mozilla u can use "file:///C:/User/User/Desktop/Downloads/images/th (3).jpg"> .This should work in all i think.. ๐.shailaja revathiyes , i got it ;but only in chrome mozilla is still not suppporting.anyway,it does'nt matter for mozilla .THANK YOU VERY MUCH .๐ -
Shailaja Tiwari
NO it is'nt working still.i'm just leaving it and happy with chrome.rahul69For Mozilla u can use "file:///C:/User/User/Desktop/Downloads/images/th (3).jpg"> .This should work in all i think.. ๐.
You are reading an archived discussion.
Related Posts
Hey!! We are the founding batch of my college. I am doing my fourth semester. They are asking ideas for a workshop for electrical engineering students. Please suggest some ideas....
Dear freinds i download autocad 2009 from a website. it is in winrar format. then i extract it to a folder in my E drive. Here in folder in which...
hi frds give me the simplest way to make bootable pen drive.
See through cars, to be more accurate 'see behind' cars use optical camouflage technology to create these vanishing acts.
Toyota seems to put it to some practical use as real...
Unlike the other works on Perceptual computing, this was more challenging. It needed an integration of OpenGL, Blender and Perceptual computing. Further it had to be on 3d coordinates unlike...