Re: missing DOCTYPE

Anton Ertl <anton@a0.complang.tuwien.ac.at> schrieb/wrote:
> Now, in HTML 2.0 the DOCTYPE is optional, according to RFC1866:
>|   <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
...
>|      NOTE - If the body of a `text/html' message entity does not begin
>|      with a document type declaration, an HTML user agent should infer
>|      the above document type declaration.

Read: It something is labelled as `text/html' but does not have a  
correct DTD identifying it as HTML, the user agent should still treat it  
as HTML.

Remember that back then when RFC 1866 was written, HTML 2.0 was the only  
HTML standard.

Today, it would probably be better to assume HTML 4.01 Transitional.

-- 
Claus Andre Faerber <http://www.faerber.muc.de>
PGP: ID=1024/527CADCD FP=12 20 49 F3 E1 04 9E 9E  25 56 69 A5 C6 A0 C9 DC

Received on Friday, 3 March 2000 15:20:22 UTC