Click to See Complete Forum and Search --> : netscape/ strange things appearing in corner


blazzyb
01-07-2003, 12:35 PM
hello ,
I have uploaded a site recently and have noticed that in netscape some weird characters are appearing in the top left corner. Everything is hunky dory in internet explorer, and it's only occuring on one page. I checked the code but can't see anything. Could someone cast a glance and see if a fresh set of eyes finds the problem , here's the page in question http://www.cityartscentre.ie/cityquay.html
appreciate any help
thanks

gil davis
01-07-2003, 01:36 PM
In View|Source, I see this on the first line of the document:

<html>

cyberclownhat
01-07-2003, 01:49 PM
Your page is missing the doctype as the first code. Place this as the first line on all pages and see the difference. IE can live without it but Netscape needs more help.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Stefan
01-07-2003, 03:45 PM
Originally posted by cyberclownhat
Your page is missing the doctype as the first code. Place this as the first line on all pages and see the difference. IE can live without it but Netscape needs more help.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

And that doctype will make a differnce?
In what browser?

To my knowledge, IE 6, Opera 7 and Mozilla would all handle that as a non-standards-compliant webpage.

You would at least require a correct systemidentifier (the URL part) to trigger Standards mode in modern browsers. In Mozilla you would even need a STRICT doctype to trigger full standards compliant rendering (a TRANSITIONAL HTML doctype would only put it in almost standards rendering mode).

In any case, the problem mentioned by the poster is that weird "<html>" as gil posted about.

cyberclownhat
01-07-2003, 07:55 PM
I copied your source and corrected several items that were not standard code. Netscape 6 displayed it correctly without the strange characters.

I included the "doctype" suggested earlier to good affect, even if others disagree.

Generally, the use of special hyphens and apostrophies in text were not recognized correctly by Netscape. Use the standard keyboard ones.

Also, you used an attribute "height" in a table description - remove it as it is not allowed. A set of <P></P> and an extra </font> was also removed.

Check out the result at:

www.geocities.com/ccbebs/TablemakerTesting.htm

The graphic will not show since I did not have easy access to it.

Good luck.

pyro
01-07-2003, 08:09 PM
Originally posted by cyberclownhat
I included the "doctype" suggested earlier to good affect, even if others disagree.What Stefan was saying is that you are including and invalid "doctype". Here is an example of a valid one.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Zach Elfers
01-07-2003, 08:14 PM
Your problem is with the symbols before the <html> tag. If you delete those, everything should work fine.

cyberclownhat
01-07-2003, 09:09 PM
The strange codes,  ,were not put in the code by the programmer. They are generated by Netscape while IE 6.0 handles the coding errors without screwing up the display.

This can be good or bad depending on whether you are looking for "correct" use of vendor varible "standards" or just a "correct" display of your page.


Your milage may vary!

gil davis
01-08-2003, 05:43 AM
Originally posted by cyberclownhat
The strange codes,  ,were not put in the code by the programmer. They are generated by Netscape while IE 6.0 handles the coding errors without screwing up the display.
Actually, the programmer's poor tag nesting caused Netscape to generate the extraneous characters. Attached is the source, with the offending <FONT> tags commented out. It will work fine in Netscape.

Stefan
01-08-2003, 10:06 AM
Originally posted by cyberclownhat
The strange codes,  ,were not put in the code by the programmer. They are generated by Netscape


Interesting how it could still show up in view source when I used IE 6.01 if that is generated by Netscape... :rolleyes:

Stefan
01-08-2003, 10:15 AM
Originally posted by pyro
What Stefan was saying is that you are including and invalid "doctype".

Actually the Doctype suggested by cyberclownhat is VALID, but it's not enough to convince modern browsers that the webpage is a standards compliant one.

The reason for this is that there have been some WYSI(not)WYG editors that included a valid 4.01 Transitional doctype (without an URI) but still produced awful crappy code.
That is why browser will assume it's nonvalid code when you use an incomplete 4,01 Transitional doc-t and use quirks rendering mode instead of Standards compliant mode.

Here btw is a link to Mozillas doctype sniffing documentation
http://www.mozilla.org/docs/web-developer/quirks/doctypes.html

IE/Win 6, IE/Mac 5 and Opera 7b have resonably similar implementations, but for only having 2 instead of mozillas 3 rendering modes (The doctypes in ALMOST STANDARS in mozilla usually triggers standards in other browsers).

pyro
01-08-2003, 10:26 AM
Originally posted by Stefan
Actually the Doctype suggested by cyberclownhat is VALID, but it's not enough to convince modern browsers that the webpage is a standards compliant one.I guess I stated that wrong. What I meant was what you said. :D

blazzyb
01-08-2003, 12:16 PM
thanks for your help, I took out the rogue font tag. As it was only the one page that it was occuring on I rekon that must have been the source of the problem. Regarding the messy and untidy code I apoligize but what can I say , I like it dirty!!!