On 06/08/10 01:24, Neredbojias wrote:
> On 05 Aug 2010, "rf" <> wrote:
>
>>
>> "rf" <> wrote in message
>> news:SKH6o.2654$ nd.com...
>>>
>>> "lrhorer" <> wrote in message
>>> news:jOOdnbzI-...
>>>> Sherm Pendley wrote:
>>>>
>>>>>> the !DOCTYPE declaration as the *SECOND* HTML line, after the
>>>>>> Content marker. Everything I read was telling me to place it as
>>>>>> the first line.
>>>>>
>>>>> What you've read is correct. The !DOCTYPE belongs on the first
>>>>> line, always, no exceptions.
>>>>
>>>> If I do that, then it won't run at all, always, no
>>>> exceptions. If
>>>> the
>>>> HTTP header does not precede every other HTML line, then the web
>>>> server will barf on the file. If the first line of the file is not
>>>>
>>>> #! /bin/bash
>>>>
>>>> (or some other valid shell), then the file won't run at all.
>>>>
>>>>>>> carefully reproduce all the bugs it has had back to version 5.5.
>>>>>>> It usually means all bets are off as far as cross browser
>>>>>>> consistent layout of your page is concerned.
>>>>>>
>>>>>> Since I'm only using one browser, I really couldn't care
>>>>>> much less
>>>>>> about that, either.
>>>>>
>>>>> Okay, but *this group* does care. If you want bad advice that only
>>>>> works in one browser, you'll need to go somewhere else to find it.
>>>>
>>>> So instead, I should take advice like that above, which
>>>> won't work
>>>> with
>>>> any browser? I didn't ask for advice setting up my headers.
>>>> Indeed, looking at your responses in this thread, I don't see any
>>>> useful advice whatsoever, only criticisms. Perhaps in the past you
>>>> have offered real advice, but one cannot judge that to be the case
>>>> by your responses in this thread. Presuming this forum is indeed
>>>> intended to be devoted to offering helpful advice, perhaps I am not
>>>> the one who should seek another forum?
>>>
>>> You are confused, and it's not Sherms fault.
>>>
>>> Read my other post again. We are not talkinging about HTTP headers
>>> here. We are talking about HTML.
>>>
>>> Doctype is part of the HTML, not the HTTP headers.
>>>
>>> Doctype must be the first line of the *HTML*.
>>
>>
>> Damn
>>
>> [HTTP headers]
>> [one blank line]
>> [HTML]
>>
>> where [HTML] looks similar to
>> <!DOCTYPE ...
>> <html>
>> <head>
>> ...
>
> What's with the blank line? If a "blank line" appears before the
> doctype (which it would with eg:
>
> <?php $epithet="bitemynuggets"; ?>
>
> <!~DOCTYPE="html">)
>
> ...then some browsers will screw it up.
No, you need a single blank line between the http headers and the start
of html.
It's how the protocol signals that the http headers have finished and
that what follows is the html code (or other content).
Rgds
Denis McMahon
|