I was validating my site and found some recurring errors:
Error Line 129, Column 366: there is no attribute “itemprop”
…”zlrecipe-ingredient-0″ class=”ingredient” itemprop=”ingredients”>4 Lamb shanks
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the “Strict” document type with a document that uses frames (e.g. you must use the “Transitional” document type to get the “target” attribute), or by using vendor proprietary extensions such as “marginheight” (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
2. Error Line 138, Column 145: document type does not allow element “img” here; assuming missing “li” start-tag
Osso-Bucco-2.jpg” /><li id=”zlrecipe-instruction-4″ class=”…
3. Error Line 138, Column 227: document type does not allow element “li” here; missing one of “ul”, “ol”, “menu”, “dir” start-tag
…ruction” itemprop=”recipeInstructions”>Pour in a can of tomatoes. (He says to …
The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.
4. Error Line 139, Column 145: required attribute “alt” not specified
Osso-Bucco-3.jpg” /><li id=”zlrecipe-instruction-6″ class=”…
The attribute given above is required for an element that you’ve used, but you have omitted it. For instance, in most HTML and XHTML document types the “type” attribute is required on the “script” element and the “alt” attribute is required for the “img” element.
5. Error Line 143, Column 224: end tag for “li” omitted, but OMITTAG NO was specified
…would be a nice accompaniment<p id=”zlrecipe-notes” class=”h-4 stron…
You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/>” instead of “>”.
Any ideas on how to fix this. If not it will keep showing up as an error on validator
- The topic ‘Validation error found’ is closed to new replies.