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 Earthling
    Techie Earthling
    Verify 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
    rahul69
    shailaja revathi
    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.
    Check out this link and ensure that you are doing everything right:
    HTML img tag
    Good Luck!!
  • Shailaja Tiwari
    Shailaja Tiwari
    THANKS .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
    rahul69
    shailaja revathi
    THANKS .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?
    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 Tiwari
    Shailaja Tiwari
    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.
    HERE'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.
  • [Prototype]
    [Prototype]
    shailaja revathi
    HERE'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.
    Which version of IE you're using? That thing works good on IE 9.
  • Shailaja Tiwari
    Shailaja Tiwari
    [Prototype]
    Which version of IE you're using? That thing works good on IE 9.
    I am using IE6
  • rahul69
    rahul69
    shailaja revathi
    HERE'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.
    This 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!!
  • Shailaja Tiwari
    Shailaja Tiwari
    rahul69
    This 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!!
    HEY 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.
    [โ€‹IMG]

    fig.1 a view of an image


  • Techie Earthling
    Techie Earthling
    shailaja revathi
    HEY 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.
    [โ€‹IMG]

    fig.1 a view of an image



    try using [โ€‹IMG]
  • Shailaja Tiwari
    Shailaja Tiwari
    Techie Earthling
    try using [โ€‹IMG]
    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 Earthling
    Techie Earthling
    shailaja revathi
    yes , i got it ;but only in chrome mozilla is still not suppporting.anyway,it does'nt matter for mozilla .THANK YOU VERY MUCH .๐Ÿ˜€
    Any Time Dear Friend CEans are always ready to help you ๐Ÿ˜€

    and I request Moderators (@#-Link-Snipped-#) to mark this Discussion as solved !๐Ÿ˜€
  • rahul69
    rahul69
    shailaja revathi
    yes , i got it ;but only in chrome mozilla is still not suppporting.anyway,it does'nt matter for mozilla .THANK YOU VERY MUCH .๐Ÿ˜€
    For Mozilla u can use "file:///C:/User/User/Desktop/Downloads/images/th (3).jpg"> .This should work in all i think.. ๐Ÿ˜€.
  • Shailaja Tiwari
    Shailaja Tiwari
    rahul69
    For Mozilla u can use "file:///C:/User/User/Desktop/Downloads/images/th (3).jpg"> .This should work in all i think.. ๐Ÿ˜€.
    NO it is'nt working still.i'm just leaving it and happy with chrome.

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...