During a validation exercise, I got a series of strange error warnings in the sense that the code actually seems right and the error warning must have another reason.
Where do I look to solve the followring errors? What causes this kind of thing and what is the best way to avoid it?
Code as it currently is, listed at the bottom at the end of the actual error messages.
Sorry for the sloppy listing, I can’t remember how to copy part of a screen including the formatting/lay out.
Line 8, Column 22: an attribute specification must start with a name or name token
<meta name=geo.region" content=“UK”>✉
An attribute name (and some attribute values) must start with one of a restricted set of characters. This error usually indicates that you have failed to add a closing quotation mark on a previous attribute value (so the attribute value looks like the start of a new attribute) or have used an attribute that is not defined (usually a typo in a common attribute name).
Line 9, Column 44: document type does not allow element “META” here
<meta name=“geo.placename” content=“London”>✉
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements – such as a “style” element in the “body” section instead of inside “head” – or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML’s rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML’s “self-closing” tags for “meta” and “link” in the “head” section of a HTML document may cause the parser to infer the end of the “head” section and the beginning of the “body” section (where “link” and “meta” are not allowed; hence the reported error).
Line 10, Column 46: document type does not allow element “META” here
<META NAME=“geo.position” CONTENT=“5.32;-0.5”>
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements – such as a “style” element in the “body” section instead of inside “head” – or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML’s rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML’s “self-closing” tags for “meta” and “link” in the “head” section of a HTML document may cause the parser to infer the end of the “head” section and the beginning of the “body” section (where “link” and “meta” are not allowed; hence the reported error).
Line 11, Column 69: document type does not allow element “META” here
<meta name=“SKYPE_TOOLBAR” content=“SKYPE_TOOLBAR_PARSER_COMPATIBLE”>✉
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements – such as a “style” element in the “body” section instead of inside “head” – or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML’s rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML’s “self-closing” tags for “meta” and “link” in the “head” section of a HTML document may cause the parser to infer the end of the “head” section and the beginning of the “body” section (where “link” and “meta” are not allowed; hence the reported error).
Line 14, Column 7: end tag for element “HEAD” which is not open
</head>✉
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
If this error occurred in a script section of your document, you should probably read this FAQ entry.
Line 15, Column 6: document type does not allow element “BODY” here
<body>✉
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements – such as a “style” element in the “body” section instead of inside “head” – or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML’s rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML’s “self-closing” tags for “meta” and “link” in the “head” section of a HTML document may cause the parser to infer the end of the “head” section and the beginning of the “body” section (where “link” and “meta” are not allowed; hence the reported
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<title>Powerflush south east London boiler repair central heating west Kent power flush</title>
<meta http-equiv=“Content-Type” content=“text/html;charset=utf-8”>
<meta name=“Description” content=“Powerflush central heating boiler repair south east London west Kent power flush”>
<meta name=“Keywords” content=“powerflush, power flush, south London boiler repairs, central heating, powerflushing”>
<meta name=geo.region" content=“UK”>
<meta name=“geo.placename” content=“London”>
<META NAME=“geo.position” CONTENT=“5.32;-0.5”>
<meta name=“SKYPE_TOOLBAR” content=“SKYPE_TOOLBAR_PARSER_COMPATIBLE”>
<!-- Place this tag in your head or just before your close body tag –>
<script type=“text/javascript” src=“https://apis.google.com/js/plusone.js”></script>
</head>
<body>