You are here: Re: IE Issues with picking up DOCTYPE « HTML « IT news, forums, messages
Re: IE Issues with picking up DOCTYPE

Posted by John Dunlop on 11/01/06 17:14

Dylan Parry:

> ebade2000@gmail.com wrote:
>
> > I will like to know why IE will not pick up the CSS but works fine in
> > FIREFOX.
>
> Probably because you shouldn't have *anything* before the Doctype -
> unless you're using XML, which is different.

That doesn't answer the question but could actually mislead. The
answer is probably that, assuming that this anecdotal evidence stands,
Internet Explorer chokes on comment declarations - maybe on anything -
before document type declarations but Firefox doesn't. That in itself
is one reason, however much weight you want to attach to it, to avoid
anything before the document type declaration.

To say that you *shouldn't* have anything before the document type
declaration, however, is potentially misleading because HTML - really
SGML - allows comment declarations, processing instructions, and
"whitespace" before the document type declaration; they can all occur
anywhere in the prolog, outside other markup declarations. And XHTML -
again, really XML - also allows those markup constructs before the
document type declaration, although XML1.1 requires an obligatory XML
declaration to come before anything else.

--
Jock

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация