Third Error

Deciphering W3 HTML Validation Errors

Posted on by Jason

Tagged as Tweet

HTML Validation Error

The W3, in its best effort to maintain standards for web documents, has created a nifty validation service for our webpages. Unfortunately, a large proportion of the error messages provided are cryptic and difficult to understand. In this article, we’ll be delving into some of the common error messages, and how to fix them. If I’ve forgot any error messages, feel free to comment.

No DOCTYPE found! Attempting validation with HTML 4.01 Transitional.

Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml

Element … undefined

NET-enabling start-tag requires SHORTTAG YES

Character … is not allowed in the value of attribute …

Value of attribute … must be a single token

Cannot generate system identifier for…

Required attribute “ALT”/”TYPE” not specified

There is no attribute…

End tag for element … which is not open

End tag for … omitted, but OMITTAG NO was specified

An attribute specification must start with a name or name token

Character … is the first character of a delimiter but occurred as data

XML Parsing Error: Opening and ending tag mismatch: … and …

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>