deadlock Message Board
[ October Full List | Post A Reply ]

Re: HTML
From Andrew on 21 Oct '05
replying to HTML posted by Jeannie

><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
>I see this code a lot in websites as the very first line. What
>does this mean and why is it important? Does every website need
>this?
>

According to HTML standards, each HTML document requires a
document type declaration. The "DOCTYPE" begins the HTML document
and tells a validator which version of HTML to use in checking
the document's syntax.

If standard HTML does not meet your needs but you still wish to
gain the benefits of HTML validation, see the section on using a
custom DTD.

The following DOCTYPEs are commonly used:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">


This declares the document to be HTML 4.0 Strict. HTML 4.0 Strict
is a trimmed down version of HTML 4.0 that emphasizes structure
over presentation. Deprecated elements and attributes (including
most presentational attributes), frames, and link targets are not
allowed in HTML 4.0 Strict. By writing to HTML 4.0 Strict,
authors can achieve accessible, structurally rich documents that
easily adapt to style sheets and different browsing situations.
However, since many browsers lack full support for style sheets,
HTML 4.0 Strict documents may look bland on common visual
browsers such as Netscape Navigator 3.x.

more at;
http://www.math.lsu.edu/wdg-html-validator/doctype.html




Your Reply

*Your name:
*Message subject:
Home page title:
Home page URL:
Email:
(if you'd like to receive automatic replies by email)