Nothing wrong with the validator
here, it just knows HTML better
than you do.-- David Dorward, Validator's mailing-list.
No DOCTYPE Declaration Found!(二)
No Character Encoding Found!(三) /check?uri=referer does not work or the validator says it does not support my "undefined" URL scheme (四)Can the validator check all the pages in my site in one batch?
lint for C. It compares
your HTML document to the defined syntax of HTML and reports any
discrepancies.
Learn more about the Markup Validator and the languages it can validate.
Be conse
rvative in what you produce; be
liberal in what you accept.Browsers follow the second half of this maxim by accepting Web pages and trying to display them even if they're not legal HTML. Usually this means that the browser will try to make educated guesses about what you probably meant. The problem is that different browsers (or even different versions of the same browser) will make different guesses about the same illegal construct; worse, if your HTML is really pathological, the browser could get hopelessly confused and produce a mangled mess, or even crash. That's why you want to follow the first half of the maxim by making sure your pages are legal HTML. The best way to do that is by running your documents through one or more HTML validators. Alengthier answer to this question is also available on this site if the explanation above did not satisfy you.
DOCTYPE declaration (or lack thereof)? Make sure your
document has a syntactically correct DOCTYPE
declaration, as described in the section
on DOCTYPE, and make sure it correctly identifies
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.
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
make sense of the rest of your page. Try correcting the first few
errors and running your page through The Validator again.
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.
<!DOCTYPE html>. A typical HTML document looks like:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title</title>
</head>
<body>
<!-- ... body of document ... -->
</body>
</html>
No Character Encoding Found!
Referer 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.
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
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.
Also, requests to non-secure HTTP resources from links in documents
transferred with a secure protocol such as HTTPS should not include
referrer information
per the HTTP/1.1 specification.
As the validator at validator.w3.org is currently not available over
HTTPS, this referrer feature will not work reliably for documents
transferred over secure protocols (usually https URLs)
with it.
How to fix:
●Check that it is indeed the Referer issue. The validator should have redirected you to
https://validator.w3.org/check?uri=your_url_here. Otherwise, check the address you have given the validator.
●The validator cannot fix this issue. You will have to (ask your administrator to) reconfigure
whichever zealous software is stripping this referrer info.
●If you have a link on your page using the "/check?uri=referer" feature, you could replace them with the
a link to the validator without this feature, e.g. https://validator.w3.org/check?uri=http%3A%2F%2Fwww.example.com
●If you have no control over the page or annoying software, or your page's URL is a https one, simply append the address of the page you wanted validated (URI encoded)
to the https://validator.w3.org/check?uri= address.
●Home |
●About... |
●News |
●Docs |
●Help & FAQ |
●Feedback |
●Contribute |