Rectangle 27 1

Line 137, Column 26: Element div not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)

.... web browsers differ in how the 'correct' coding errors.....

the HTML5 spec is the first W3 spec to specify how userAgents should correct markup and presentational (css) errors....

  • i/o for a child) ALL browsers will render your website 'More or Less' the same as there is no need for interpretation of how 'errors' should be corrected.

Good idea using the W3 Validator! I checked out the errors raised in the vicinity of the blip line problem and fixed them, including changing the div inside the ul to a li. But alas, that was not the issue.

You can't pick and choose, if your going to fix any of them fix them all. Don't be lazy.

html - Internet Explorer pseudo elements with background image - Stack...

html css internet-explorer cross-browser pseudo-element
Rectangle 27 1

As such, Stray end tag... means just that an end tag is not allowed in the context where it appears. As the validators explanation says: 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.

From the symptoms (the error message string), we can infer that you are validating against HTML5 in HTML serialization. This means that no end tag is allowed for an img element, since the start tag is treated as also closing the element (implicitly closed element).

Thus, the solution is to either remove the </img> tag or to validate against HTML5 in XHTML serialization. The latter is not practical for web pages, but if you are using HTML for something else, you should validate by URL referring to a resource that is served with an XML content type.

html - Stray end tag img - Stack Overflow

html html5 user-interface markup w3c-validation