- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Mon, 30 Aug 2010 19:00:11 +0300
- To: "thew" <gamewereld@hotmail.com>, <www-validator@w3.org>
thew wrote: > Head tag was set, but Validator doesn't accept meta tag there. > > Validating http://www.alphenweer.nl/ > Error [64]: "document type does not allow element X here" The very first message is: Error Line 9, Column 73: end tag for "meta" omitted, but OMITTAG NO was specified <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> This is one of the many symptoms of using classic HTML syntax in a document that declares an XHTML document type (and uses XHTML syntax for many, but not all, elements). It's usually pointless to use XHTML if you have no real use for XML-based operations, but it's mostly harmless too, and it's probably easier to change the classic HTML constructs that need fixing when used in XHTML. After all, it largely means just throwing in some "/" characters and some superfluous end tags, see http://www.w3.org/TR/xhtml1/#diffs If you fix those as well as write any occurrence of "&" as a data character (even in attribute values) as "&", you'll probably have a fairly small set of issues left, instead of the current 133 errors and 83 warnings. -- Yucca, http://www.cs.tut.fi/~jkorpela/
Received on Monday, 30 August 2010 16:01:01 UTC