DelphiFAQ Home Search:
General :: Web publishing
Information about web publishing, how to maintain, optimize and promote a web site.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.
Recommended links on this topic:
Featured Article

Internet Explorer displays blank page, which works in Firefox

Question:

I have a HTML file with embedded style definitions that displays properly in Firefox, but Internet Explorer only shows a blank page.
What could be the reason?

Answer:

I reviewed your HTML. I found the following style definition near the top of your page.

<style type="text/css">
<!--
a:link { text-decoration:none;color:blue; }
//-->
</style>


This does indeed work in Firefox but not in Internet Explorer. Remove the '<!--' and the '//-->' (comments) from the style so that it looks like this:

<style type="text/css">
a:link { text-decoration:none;color:blue; }
</style>



Then it will work both in Internet Explorer and in Firefox.
The <!-- ... //--> is used in Javascript, in case the page is viewed with a browser that does not understand the <script> tag.


Generated 8:01:44 on Dec 10, 2019