MarkUp Validation Service

Table of contents

Using this service

How do I use this service?

Most probably, you will want to use the online Markup Validation service. Read the user's manual for further help with this service.

If, for some reason, you prefer running your own instance of the Markup Validator, check out our developer's documentation.

What are these error messages?

The output of the Markup Validator may be hard to decypher for newcomers and experts alike, so we are maintaining a list of error messages and their interpretation, which should help.

Many error messages? Don't panic.

Don't panic. Did The Validator complain about your 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.

I don't want error messages, I want you to clean up my page!

The Markup Validator can not do this for you. You may want to have a look at tools such as HTML Tidy.

Miscellaneous (Very) Frequently Asked Questions

The validator complains about "&" in my URLs!

Most probably, you should read the ampersand section of WDG's excellent "common validation problem"

The validator complains about something in my Javascript!

Most probably, you should read the script section of WDG's excellent "common validation problem"

Why doesn't the validator like my <link ... /> or <meta ... />?

HTML is based on SGML and uses an SGML feature (called SHORTTAG) (note that this is not the case with XHTML).

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, not in XHTML), it is silently inserted, thus head-only elements like meta and style as well as "</head>" and "<body>", which may apear only once, become false.

(explanation courtesy of Christoph Päper)

I found some nasty typo like <p<a ...> and the validator accepted it!

This again (as in the previous case) comes from the SHORTTAG feature in HTML (not in XHTML). The typo is actually a "shorthand markup" and is a valid construct in HTML, even though its use is not recommended.

Valid XHTML 1.0! The W3C Validator Team
$Date: 2002/11/25 01:37:22 $