anbutechie has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on What is code to show the image in web page?

Replies are listed 'Best First'.
Re: What is code to show the image in web page?
by Unforgiven (Hermit) on Aug 28, 2009 at 13:08 UTC
    It's probably just a typo when you were typing this question, but just in case: it should be:
    <img src="path" />
    not
    <img scr="path" />
    It's also a good idea to add an "alt" attribute for accessibility (and to make it valid, depending on the HTML version you're using). That'd make it:
    <img src="path" alt="Helpful Alternative Text" />
Re: What is code to show the image in web page?
by leocharre (Priest) on Aug 28, 2009 at 18:49 UTC

    I think it would help to fully realize that the question you are asking is not exactly a perl matter.

    When you open the page in the browser, can you select 'view code' ?

    Don't think of the output in the browser as being "cgi", it's html.

    Read up on css, html, relative and absolute url discrepancies in google chrome vs ie vs firefox etc.- That might hold better answers.

Re: What is code to show the image in web page?
by Jenda (Abbot) on Aug 28, 2009 at 16:55 UTC

    Any chance the image is a BMP? I have seen people trying to use .bmp images in web ... works in IE, doesn't in other browsers. Plus it's terribly inefficient.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

Re: What is code to show the image in web page?
by Taulmarill (Deacon) on Aug 28, 2009 at 11:33 UTC
    The problem lies most certainly not with the html tag itself but with the surrounding html, css or JavaScript. Have you tried other browsers? IE <= 7 does things much more different than other browsers.