Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

What is code to show the image in web page?

by anbutechie (Sexton)
on Aug 28, 2009 at 11:24 UTC ( [id://791879]=perlquestion: print w/replies, xml ) Need Help??

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

This node falls below the community's threshold of quality. You may see it by logging in.
  • 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://791879]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-13 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found