diff options
-rw-r--r-- | share/templates/en_US/warnings.tmpl | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/share/templates/en_US/warnings.tmpl b/share/templates/en_US/warnings.tmpl index 2245988..699bb12 100644 --- a/share/templates/en_US/warnings.tmpl +++ b/share/templates/en_US/warnings.tmpl @@ -159,7 +159,7 @@ </dd> </TMPL_IF> <TMPL_IF NAME="W09"> - <dt id="W09"><code>DOCTYPE</code> Fallback in effect!</dt> + <dt id="W09">No <code>DOCTYPE</code> found! Attempting validation with <TMPL_VAR NAME="W09_dtd" ESCAPE="HTML">.</dt> <dd> <p> The DOCTYPE Declaration was not recognized or is missing. This @@ -170,6 +170,43 @@ document will not be Valid until you have corrected the problem with the DOCTYPE Declaration. </p> + <TMPL_IF NAME="opt_verbose"> + <p> + You should place a DOCTYPE declaration as the very first thing in your + HTML document. For example, for a typical <a + href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> document: + </p> + <pre> + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + <head> + <title>Title</title> + </head> + + <body> + <!-- ... body of document ... --> + </body> + </html> + </pre> + <p> + For XML documents, you may also wish to include an "XML Declaration" + even before the DOCTYPE Declaration, but this is not well supported + in older browsers. More information about this can be found in the + <a href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> Recommendation. + </p> + <p> + The W3C QA Activity maintains a <a + href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">List of + Valid Doctypes</a> that you can choose from, and the <acronym + title="Web Design Group">WDG</acronym> maintains a document on + "<a href="http://htmlhelp.com/tools/validator/doctype.html">Choosing + a DOCTYPE</a>". + </p> + <TMPL_ELSE> + <p>So what should I do? <a href="docs/help.html#faq-doctype">Tell me more...</a></p> + </TMPL_IF> + </dd> </TMPL_IF> <TMPL_IF NAME="W10"> |