Re: Http code that precedes the html tags
- From: Gus Richter <gusrichter@xxxxxxxxxxxx>
- Date: Wed, 04 Feb 2009 04:37:28 -0500
Judge Judy wrote:
What does the http code before the <HTML> tag look like?
I know that I can put cookies in the meta tags of the header block,
however when I try to put it before the <HTML> tag it does not work.
I don't understand what format the http code takes. There are
riduculous long winded RFCs on just the HTTP version (who reads or
writes this stuff), but none on how to send the HTTP to a browser.
HTTP is the protocol used by the Browser (Client) requesting data to be transfered to it from a Server which then answers back and sends the data requested.
<http://searchwindevelopment.techtarget.com/sDefinition/0,,sid8_gci214004,00.html>
Hypertext Transfer Protocol:
<http://en.wikipedia.org/wiki/Http>
The Server sends the data to the Browser (Client) via packets using TCP/IP:
<http://en.wikipedia.org/wiki/Internet_protocol_suite>
The Data which the Server sends is the Web Page which you mention in your posting with the reference of <html>.
HTML (HyperText Markup Language) in it's latest version is 4.01:
<http://www.w3.org/TR/html4/>
has specific rules for the structure of a W3C conforming HTML Document (Web Page), like so:
There must be a Doctype Declaration.
<html>
<head>
contains permittted HEAD elements
</head>
<body>
contains permitted BODY elements
</body>
</html>
The only thing permitted before the <html> tag is the Doctype Declaration, which normally should be this one:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
If you place a META element (which is only permitted to be in the head section) outside of the head section as you say you did, then you should not be surprised that things don't work.
You can only change HTTP within the browser software and/or within the server software and there is no reason whatsoever for you to want to do so.
--
Gus
.
- Follow-Ups:
- Re: Http code that precedes the html tags
- From: Judge Judy
- Re: Http code that precedes the html tags
- References:
- Http code that precedes the html tags
- From: Judge Judy
- Http code that precedes the html tags
- Prev by Date: Re: IE & Doctypes (esp for newbies)
- Next by Date: Re: A problem for "fluid design" experts.
- Previous by thread: Http code that precedes the html tags
- Next by thread: Re: Http code that precedes the html tags
- Index(es):
Relevant Pages
|
Loading