Forum Moderators: open

Message Too Old, No Replies

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">

any ideas?

         

mikeD

9:20 pm on Mar 6, 2003 (gmt 0)

10+ Year Member



I've been trying to find out what this piece of code does when added before the <html> tag. Any ideas?

jdMorgan

9:44 pm on Mar 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



mikeD,

It is the Document Type Declaration, declaring that the document is HTML 3.2, and thus telling the browser what "compatibility mode" to use to interpret it. It is required for a page to pass validation.

See www.w3c.org

HTH,
Jim

universalis

4:01 pm on Mar 7, 2003 (gmt 0)

10+ Year Member



You might also want to check out this article on choosing a DOCTYPE:

[alistapart.com...]