Re: doctype nightmare

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: bumblingalong (anonymous_at_discussions.microsoft.com)
Date: 11/04/04


Date: Wed, 3 Nov 2004 17:26:25 -0800

thank you very much, i can go to bed now, without
worrying that my web site will not be displayed. Thanks
again. Good night
>-----Original Message-----
>You don't need to declare any doctype.
>
>Pages with no doctype, or with an incomplete doctype
will be rendered by the
>browser's quirks mode. This is not good since each
browser has a different
>interpretation of 'quirks'. Therefore you may see quite
a bit of variation
>from one browser/platform combination to another,
depending on the quality
>of your code and the methods you have used.
>
>Pages with a complete doctype will be rendered by the
browsers in the mode
>specified in the doctype, either loose, or strict, or
XHTML. In most cases
>the former two would be all you would need. One
probably shouldn't use
>XHTML unless one has a need to do so.
>
>In loose or strict rendering mode, browsers (mostly)
adhere to published
>standards in interpreting the code on the page.
Notwithstanding this ideal,
>there is still variation between browsers and platforms,
but not nearly as
>much as in quirks mode. If you are a good code, use
strict. If you are not
>a good coder, use loose, or none.
>
>When would it make a difference? Here's an example.
>
><table width="100%" height="100%"...
>
>This is a commonly used method of filling the page with
a table's contents
>(or vertically centering contents on the page).
However, table height is
>NOT valid HTML. It never has been.
>
>In quirks mode, browsers will take a shot at rendering
100% high tables
>(what is it 100% of: the body of the page, or the
browser's viewport
>height?) - but IEMac and IEPC have different
interpretations. In standards
>mode, since this code is invalid HTML, it is ignored
completely. A 100%
>high table will only be as tall as the contents require
in any browser on
>any platform.
>
>Geddit?
>
>--
>Murray
>
><anonymous@discussions.microsoft.com> wrote in message
>news:18fc01c4c1ff$38f702f0$a501280a@phx.gbl...
>>i have reviewed discussions here about doc type been to
>> w3.org. and spider web woman and am becoming more
>> confused by the minute. If you have created a site in
>> fp2003 and include javascript and have css what doc
type
>> should you declare? i entered trans loose html 4.0 but
>> got an error with w.3 saying this page is not valid
html
>> 4.0 transitional.
>>
>> also can anyone tell me what xlmns is???
>>
>> thank a million to anyone who replies. Its past my bed
>> time and i await useful replies
>
>
>.
>



Relevant Pages

  • Re: doctype nightmare
    ... >>You don't need to declare any doctype. ... >>In loose or strict rendering mode, browsers ... >>much as in quirks mode. ... >>NOT valid HTML. ...
    (microsoft.public.frontpage.client)
  • Re: Why cant I get space?
    ... Steve wrote: of doctype which puts the browsers into Quircks Mode and messing up the ... I recommend using the Strict Doctype. ... <html xmlns="http://www.w3.org/1999/xhtml"</a>; xml:lang="en-GB"> ... or xhtml, why do they matter? ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: doctype nightmare
    ... You don't need to declare any doctype. ... Pages with a complete doctype will be rendered by the browsers in the mode ... In loose or strict rendering mode, ... much as in quirks mode. ...
    (microsoft.public.frontpage.client)
  • Re: name reference
    ... Hi Matt, you're right, I stand corrected about quirksmode!= valid HTML ... You have a significant misunderstanding of quirks mode. ... The advantage of standards mode is that browsers like IE will behave more ...
    (comp.lang.javascript)
  • Re: Having trouble with xhtml compatibility
    ... I cannot seem to get it to work under an xhtml revalidation. ... The document is being served as text/html, the XHTML DOCTYPE is doing ... While it is considered a bad idea, many browsers ... Also, the bgcolor attribute is deprecated in HTML 4, so better to use ...
    (comp.lang.javascript)