Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<img> tag keeps disappearing

Status
Not open for further replies.

may1hem

Programmer
Jul 28, 2002
262
GB
I have an HTML file which I uploaded to my Web space, but when I call that page from my browser, everything displays except for 1 particular <IMG> tag. That <IMG> tag just vanishes! I thought that it might be the browser's cache, so I closed the browser, opened up a new browser and tried it, but no joy. I tried renaming the page and calling it from a browser using its new filename but for some strage reason the <IMG> tag is stripped out. Any ideas on what could be causing this & how to solve it?

Thanks,

May
 
Check to make sure you don't have a partial tag somewhere right before your image tag, like:
Code:
<p <-- no closing gt
<form name=&quot;whatever>  <-- no closing quote

It may be that one of your earlier tags is ignoring the &lt;img and stealing one of it's end quotes or $gt;s

-Tarwn Experts are only people who have realized how much they will never know about a language.
________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924
 
Hi May,
What i understood from ur problem is, missing of image when u gave <IMG> tag.Right!!!
If tht is correct then u might have wrong URL or wrong path of the image file where it is residing else it might me something wrong with the tag u have written.Can u post the Tag alone.

Merry Christmas..!!

Vishnu
India
 
Thank you all for your ideas. A friend helped me identify the cause of this problem. It was my firewall, Norton Internet Security 2003. It physically strips out the <IMG> tag when it suspects that the image is an advertising banner. To get around this, I cropped the image height by 1 pixel, so the height is now 120x89.

All the best,

May
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top