|
|
|
|
|
by tannhaeuser
1906 days ago
|
|
That's SGML tag inference at work (theoretically at least, since browsers have HTML parsing rules hardcoded). SGML knows, by the DOCTYPE declaration, that the document must start with an "html" element, so it infers it if it isn't there. Next, by the content model declared for the "html" element (normally obtained via the ugly public identifier that sibling comments complain about), a "head" element is expected, so SGML infers it as well if it's declared omissible, and so on. |
|
E.g., this is the entire code of Netscape's first home page:
http://home.mcom.com/