PC Review


Reply
Thread Tools Rate Thread

doctype nightmare

 
 
Guest
Posts: n/a
 
      3rd Nov 2004
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
 
Reply With Quote
 
 
 
 
Murray
Guest
Posts: n/a
 
      4th Nov 2004
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

<(E-Mail Removed)> wrote in message
news:18fc01c4c1ff$38f702f0$(E-Mail Removed)...
>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



 
Reply With Quote
 
bumblingalong
Guest
Posts: n/a
 
      4th Nov 2004
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
>
><(E-Mail Removed)> wrote in message
>news:18fc01c4c1ff$38f702f0$(E-Mail Removed)...
>>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

>
>
>.
>

 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      4th Nov 2004
You're welcome. I'm not sure whether this is good or bad news for you,
though! 8)

--
Murray

"bumblingalong" <(E-Mail Removed)> wrote in message
news:195401c4c20d$4ce78060$(E-Mail Removed)...
> 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
>>
>><(E-Mail Removed)> wrote in message
>>news:18fc01c4c1ff$38f702f0$(E-Mail Removed)...
>>>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

>>
>>
>>.
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DocType Michael Microsoft Frontpage 1 27th Jan 2009 02:24 PM
DOCTYPE =?Utf-8?B?anBjdW1taW5z?= Microsoft Frontpage 2 27th Sep 2007 09:30 PM
The right DOCTYPE? MattB Microsoft ASP .NET 1 7th May 2007 08:23 PM
DOCTYPE Malcolm Walker Microsoft Frontpage 20 31st Jan 2006 09:14 PM
DOCTYPE ????? Johny Microsoft Frontpage 6 14th Mar 2005 12:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 PM.