- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 24 Jul 2006 07:11:57 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/htdocs/docs In directory hutz:/tmp/cvs-serv27581/htdocs/docs Modified Files: Tag: validator-0_7-branch help.html Log Message: simplified help text for missing charset (ported to 0.7 branch) Index: help.html =================================================================== RCS file: /sources/public/validator/htdocs/docs/help.html,v retrieving revision 1.30.2.1 retrieving revision 1.30.2.2 diff -u -d -r1.30.2.1 -r1.30.2.2 --- help.html 4 Apr 2006 00:26:19 -0000 1.30.2.1 +++ help.html 24 Jul 2006 07:11:55 -0000 1.30.2.2 @@ -8,7 +8,7 @@ <h2>Help and <acronym title="Frequently Asked Questions">FAQ</acronym> for the Markup Validator</h2> <p><q cite="http://lists.w3.org/Archives/Public/www-validator/2004Jan/0101.html">Nothing wrong with -the Validator here, it just knows HTML better than you do.</q> -- David Dorward, Validator's +the validator here, it just knows HTML better than you do.</q> -- David Dorward, Validator's mailing-list.</p> <h3 id="TableOfContents">Table of contents</h3> @@ -37,13 +37,13 @@ <a href="#why-validate">Why validate?</a> </li> <li> - <a href="#who-does-validator">Who owns/maintains the Markup Validator?</a> + <a href="#who-does-validator">Who owns/maintain the Markup Validator?</a> </li> <li> <a href="#others">What other validators are there?</a> </li> <li> - <a href="#how">How does the Validator work?</a> + <a href="#how">How does The Validator work?</a> </li> <li> <a href="#howto-feedback">How do I send feedback/bug reports @@ -54,10 +54,10 @@ <li>Using this service <ol> <li> - <strong><a href="#manual">How do I use the Markup Validator?</a></strong> + <strong><a href="#manual">How do I use the Markup validator?</a></strong> </li> <li> - <a href="#errors">What are these error messages?</a> + <a href="#errors">What is (are) this (these) error message(s)?</a> </li> <li> <a href="#munged-doctype">Many error messages? Don't panic.</a> @@ -82,24 +82,24 @@ <a href="#faq-charset"><q>No Character Encoding Found!</q></a> </li> <li> - <a href="#faq-ampersand">The Validator complains about "&" in my URLs!</a> + <a href="#faq-ampersand">The validator complains about "&" in my URLs!</a> </li> <li> - <a href="#faq-javascript">The Validator complains about something in my JavaScript!</a> + <a href="#faq-javascript">The validator complains about something in my JavaScript!</a> </li> <li> - <a href="#faq-linkandmeta">Why doesn't the Validator like my <link ... /> + <a href="#faq-linkandmeta">Why doesn't the validator like my <link ... /> or <meta ... />?</a> </li> <li> <a href="#faq-typo">I found some nasty typo like <p<a ...> - and the Validator accepted it!</a> + and the validator accepted it!</a> </li> <li> - <a href="#faq-referer">/check/referer does not work</a> or the Validator says it does not support + <a href="#faq-referer">/check/referer does not work</a> or the validator says it does not support my <a href="#faq-referer">"undefined" URL scheme</a> </li> - <li><a href="#faq-batchvalidation">Can the Validator check all the pages in my site in one batch?</a></li> + <li><a href="#faq-batchvalidation">Can the validator check all the pages in my site in one batch?</a></li> </ol> </li> </ol> @@ -123,16 +123,16 @@ </p> <p> - This page was once valid. - If it isn’t currently valid, you would probably do the author of the page a favor - if you could warn him/her of this abnormal situation. - </p> + The validation result was certainly positive ("this page is valid..."), + but if it wasn't, you would probably do the author of the page where + the icon was a favor if you could warn him/her of this abnormal situation. + </p> <p> If you are curious about Markup validation you may read this help document further, or you may simply use the back button - of your Web browser to return to the page where you found + of your Web browser to come back to the page where you found the "valid" icon. </p> @@ -154,7 +154,7 @@ can include spelling or grammar errors, documents using Markup languages may (for various reasons) not be following these rules. The process of verifying whether a document actually follows the rules for the - language it uses is called <em>validation</em>, and the tool used for that + language(s) it uses is called <em>validation</em>, and the tool used for that is a validator. A document that passes this process with success is called <em>valid</em>. </p> @@ -184,9 +184,12 @@ </p> <p> Markup languages are defined in <em>technical specifications</em>, - which generally include a <em>formal grammar</em> and a number of other - rules, for instance, defining <em>semantics</em>. - A document is valid when it is correctly written in accordance with the formal grammar, whereas conformance relates to the whole specification. The two might be equivalent, but in most cases, some conformance requirements cannot be expressed in the grammar, making validity only a part of conformance. + which generally include a <em>formal grammar</em>. + A document is valid when it is correctly written in accordance + to the formal grammar, whereas conformance relates to the + specification itself. The two <em>might</em> be equivalent, but in most cases, + some conformance requirements can not be expressed in the grammar, making validity + only a part of the conformance. </p> <h4 id="what-is-it">What is the Markup Validator and what does it do?</h4> @@ -228,7 +231,7 @@ you. </p> - <h4 id="who-does-validator">Who owns/maintains the Markup Validator?</h4> + <h4 id="who-does-validator">Who owns/maintain the Markup Validator?</h4> <p>The Markup Validator is maintained at <acronym title="World Wide Web Consortium">W3C</acronym> by W3C staff and benevolent collaborators, who receive a lot of help from contributors @@ -250,12 +253,12 @@ <p> Looking for validators at W3C, but not the Markup Validator? Check out the list of <a href="http://www.w3.org/QA/Tools/#validators">validators at W3C</a>, - including well-known <a href="http://jigsaw.w3.org/css-validator/">CSS Validator</a>, + including well-known <a href="http://jigsaw.w3.org/css-validator/">CSS validator</a>, <a href="http://validator.w3.org/checklink">link checker</a>, etc. </p> - <h4 id="how">How does the Validator work?</h4> + <h4 id="how">How does The Validator work?</h4> <p> The Validator is based on <a href="http://openjade.sourceforge.net/">OpenSP</a>, an SGML parser based on <a href="http://www.jclark.com/">James @@ -279,7 +282,7 @@ <p>Most probably, you will want to use the online Markup Validation service. The simple way to use this service to validate a Web page is to paste its address into the <a href="../#uri">text area</a> on the - <a href="..">Validator's home page</a>, and press the "Check" button.</p> + <a href="..">validator's home page</a>, and press the "Check" button.</p> <p>There are other possible uses and a few usage options, please read the <a href="users.html">user's manual</a> for further help with this service. @@ -298,31 +301,27 @@ <h4 id="munged-doctype">Many error messages? Don't panic.</h4> <p> - Don't panic. Did the Validator complain about your + Don't panic. Did The Validator complain about your <code>DOCTYPE</code> declaration (or lack thereof)? Make sure your document has a syntactically correct <code>DOCTYPE</code> declaration, as described in the <a href="sgml.html#doctype">section on <code>DOCTYPE</code></a>, and make sure it correctly identifies - the type of HTML you're using. Then run it through the Validator + the type of HTML you're using. Then run it through The Validator again; if you're lucky, you should get a lot fewer errors. </p> <p> If this doesn't help, then you may be experiencing a cascade failure - — one error that gets the Validator so confused that it can't + — one error that gets The Validator so confused that it can't make sense of the rest of your page. Try correcting the first few - errors and running your page through the Validator again. + errors and running your page through The Validator again. </p> - <p>It is generally a good idea to fix errors in order, thus limiting the effects - of cascading errors. Another good idea is to glance through the whole list of errors - and check whether there is a repeated error type, such as (a rather common mistake) the - absence of "alt" attribute for <img> elements. <p> Be patient, with a little time and experience you will learn to use the Markup Validator to clean up your HTML documents in no time. </p> <h4 id="cleanup">I don't want error messages, I want you to clean up my page!</h4> - <p>The Markup Validator cannot do this for you. You may want to have a look + <p>The Markup Validator can not do this for you. You may want to have a look at tools such as <a href="http://tidy.sourceforge.net">HTML Tidy</a>.</p> <h4 id="icon">"valid" icons</h4> @@ -422,45 +421,37 @@ <p>An HTML document should be served along with its character encoding.</p> - <p> Specifying a character encoding is normally done in the web server - configuration file or administration program. The <a - href="http://www.w3.org/"><abbr - title="World Wide Web Consortium">W3C</abbr></a> <a - href="http://www.w3.org/International/"><abbr - title="Internationalization">I18N</abbr> Activity</a> has collected - <a href="http://www.w3.org/International/O-HTTP-charset" - title="A Few Tips On How To Specify the Character Encoding">a few - tips on how to do this</a> in popular web server implementations. -</p> - <p> - <a href="http://www.iana.org/"><abbr - title="Internet Assigned Numbers Authority">IANA</abbr></a> - maintains the list of <a - href="http://www.iana.org/assignments/character-sets">official - names for character sets</a> and the <abbr - title="Web Design Group">WDG</abbr> has some <a - href="http://www.htmlhelp.com/tools/validator/charset.html">information - to help you correctly specify the character encoding</a>. - </p> + <p>Specifying a character encoding is typically done by the web server + configuration, by the scripts that put together pages, and inside the + document itself. <a href="http://www.iana.org/"><abbr title="Internet Assigned Numbers Authority">IANA</abbr></a> + maintains the list of + <a href="http://www.iana.org/assignments/character-sets">official names for character + encodings</a> (called charsets in this context). You can choose from a number + of encodings, though we recommend UTF-8 as particularly useful.</p> + + <p>The W3C <abbr title="Internationalization">I18N</abbr> Activity has collected a + <a href="http://www.w3.org/International/O-charset">few tips on + how to do this</a>.</p> + <p> To quickly check whether the document would validate after addressing the missing character encoding information, you can use the "Encoding" form control (accesskey "2") earlier in the page to force an encoding override to take effect. "iso-8859-1" (Western Europe and North America) - and "utf-8" (Universal, but not commonly used in legacy documents) are + and "utf-8" (Universal, and more commonly used in recent documents) are common encodings if you are not sure what encoding to choose. </p> - <h4 id="faq-ampersand">The Validator complains about "&" in my URLs!</h4> + <h4 id="faq-ampersand">The validator complains about "&" in my URLs!</h4> <p>Most probably, you should read the <a href="http://www.htmlhelp.com/tools/validator/problems.html#amp">ampersand section</a> of WDG's excellent -"<a href="http://www.htmlhelp.com/tools/validator/problems.html">common HTML validation problem</a>" +"<a href="http://www.htmlhelp.com/tools/validator/problems.html">common validation problem</a>" </p> - <h4 id="faq-javascript">The Validator complains about something in my JavaScript!</h4> + <h4 id="faq-javascript">The validator complains about something in my JavaScript!</h4> <p>Most probably, you should read the <a href="http://www.htmlhelp.com/tools/validator/problems.html#script">script section</a> of WDG's excellent @@ -468,33 +459,24 @@ document. </p> - <h4 id="faq-linkandmeta">Why doesn't the Validator like my + <h4 id="faq-linkandmeta">Why doesn't the validator like my <link ... /> or <meta ... />?</h4> - - <p>Short explanation: <strong>never</strong> use the closing style proper - to XHTML (< meta ... /> ) if you're not using XHTML. For HTML, you should use - <meta ... >.</p> - <p>Why? The explanation comes from the origins of HTML.</p> - <p>HTML is based on <a href="sgml.html">SGML</a> and uses an SGML - feature called SHORTTAGs (note that this is <strong>not</strong> + feature (called SHORTTAG) (note that this is <strong>not</strong> the case with XHTML).</p> <p>With this feature enabled, the "/" in <link ... /> or <meta ... /> already closes the link (or meta) tag, and the ">" becomes some regular text, which is not allowed in the <head> element. Since </head><body> - is optional in HTML (again, <strong>not</strong> in XHTML), the presence of text not allowed - within </head> makes the parser imply that </head><body> was - "silently inserted", and that the rest of the content should be parsed as if it were inside - the <body>. Thus, head-only elements like meta and style as well as - "</head>" and "<body>", which may appear only once, become invalid in - the implied context. + is optional in HTML (again, <strong>not</strong> in XHTML), it is silently inserted, + thus head-only elements like meta and style as well as + "</head>" and "<body>", which may appear only once, become false. </p> <p>(explanation courtesy of Christoph Päper)</p> <h4 id="faq-typo">I found some nasty typo like <p<a ...> - and the Validator accepted it!</h4> + and the validator accepted it!</h4> <p>This again (as in the <a href="#faq-linkandmeta">previous case</a>) comes from the SHORTTAG feature in HTML (<strong>not</strong> in XHTML). The typo is actually a @@ -502,34 +484,34 @@ <a href="http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.7">is not recommended</a>. </p> - <h4 id="faq-referer">/check/referer does not work - or - the Validator says it does not support + <h4 id="faq-referer">/check/referer does not work - or - the validator says it does not support my "undefined" URL scheme</h4> <p>Browsers and other Web agents usually send information about the page they come from, in a - <code>Referer</code> header. The Validator uses this information for a feature that allows - it to validate whatever page the browser last visited. The "valid" icons featured on Web pages - are usually linking to the validation results for the page itself. It is both a statement ("this page is valid") - and a mean to verify the statement ("this page is valid, and if you click on the icon, the validator will check it for you").</p> + <code>Referer</code> header. The validator uses this information for a features that allows + it to validate whatever page the browser last visited. The "valid" icons on some Web page usually + point to the validation of the page using this feature.</p> <p>Unfortunately, some zealous "security software" or Web proxies strip the referrer - information from what the browser sends. Without this information the Validator is not able to + information from what the browser sends. Without this information the validator is not able to find what the URL of the document to validate is, and gives the same error message as when it is given a type of URL it does not understand.</p> <p><strong>How to fix</strong>:</p> <ul> - <li>Check that it is indeed the <code>Referer</code> issue. The Validator should have redirected you to - <code>http://validator.w3.org/check?uri=</code>. Otherwise, check the address you have given the Validator.</li> - <li>The Validator cannot fix this issue. You will have to (ask your administrator to) reconfigure + <li>Check that it is indeed the <code>Referer</code> issue. The validator should have redirected you to + <code>http://validator.w3.org/check?uri=</code>. Otherwise, check the address you have given the validator.</li> + <li>The validator can not fix this issue. You will have to (ask your administrator to) reconfigure whichever zealous software is stripping this referrer info.</li> - <li>Alternatively, you can bypass the "referer" feature by linking directly to the validation results for the specific page, - e.g. <code>http://validator.w3.org/check?uri=http://www.example.com</code></li> - </ul> - - <h4 id="faq-batchvalidation">Can the Validator check all the pages in my site in one batch?</h4> + <li>If you have a link on your page using the "/check/referer" feature, you could replace them with the + a link to the validator without this feature, e.g. <code>http://validator.w3.org/check?uri=http://www.example.com</code></li> + <li>If you have no control over the page or annoying software, simply append the address of the page you wanted validated + to the <code>http://validator.w3.org/check?uri=</code> address.</li> + </ul> + <h4 id="faq-batchvalidation">Can the validator check all the pages in my site in one batch?</h4> <p>At the moment, the Markup Validator does not have a batch, or recursive, validation feature. As an alternative, the W3C maintains the <a href="http://www.w3.org/QA/Tools/LogValidator/">LogValidator</a>, - a software tool that interacts with the Validator to check the log of your Web site (or any list of URLs) + a software tool that interacts with the validator to check the log of your Web site (or any list of URLs) and reports a list of the most popular invalid documents.</p> <p>The <a href="http://www.htmlhelp.com/tools/validator/">WDG HTML Validator</a> also does recursive validation.</p> </div>
Received on Monday, 24 July 2006 07:15:44 UTC