doctype declaration for generated html code

From: PsychoTekk .de <psychotekk@dont-contact.us>
Date: Fri, 12 Jul 2002 11:52:32 -0500

hi,
i think it would be useful to include a <u>doctype</u> declaration
in the html pages generated by squid (the error documents and
the cachemanager).
the doctype tells the browser what version of html the code is
written in. some opf the later browsers actually look at that
to determine how they are supposed to render the html code
(since essentially the rules changed between different versions).
in addition to that, a validator looks at the doctype to determine
which dtd (document type definition) it is supposed to validate
the html against.
Apache/1.3.20 e.g. uses <b>&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;</b>
IBM-PROXY-WTE-US/3.6 uses <b>&lt;!doctype html public "html2.0"&gt;</b>
on their error pages

Furthermore it would be useful to define a </u>charset</u> (this can be either
done in the body of the html document by using a meta tag
<b>&lt;META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"&gt;</b>
or by adding the specific header information.
<b>Content-Type: text/html; charset=ISO-8859-1</b>)

here are some resources on the standarts according to the
world wide web consortium (w3c) at www.w3.org:

http://www.w3.org/TR/REC-html40/struct/global.html
http://a.tribalfusion.com/f.ad?site=W3Schools&adSpace=ROS&requestID=15234
http://www.w3.org/International/O-charset.html

html validator to check back: http://validator.w3.org

regards,
 C.L.

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


Save up to $160 by signing up for NetZero Platinum Internet service.
http://www.netzero.net/?refcd=N2P0602NEP8

Received on Fri Jul 12 2002 - 11:28:05 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:48 MST