Top 10 HTML Errors
Web developers worldwide have found 423 million HTML issues on 12 million checked web pages.
Here are the most common issues detected by Rocket Validator.
Last update: Friday, February 20, 2026
1. Element “X” not allowed as child of element “Y” in this context. 32.95%
The element X is not allowed as a child element of Y. For example, a <ul> element cannot have a <div> child element.
2. Duplicate ID “X”. 23.72%
The id attribute is used to identify a single element within a document, and is required to be unique. Check the document for repeated IDs.
3. Attribute “X” not allowed on element “Y” at this point. 16.95%
An invalid attribute has been found on an element. Check the affected tag to ensure attributes are well-formed, and if they are you can consider using custom data attributes.
4. No space between attributes. 7.17%
Attributes in HTML elements need to be separated by space.
5. An element with the attribute “tabindex” must not appear as a descendant of the “a” element. 5.46%
An <a> element cannot contain a descendant element with the attribute tabindex.
6. An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. 4.45%
<img> tags, used to include images on a document, require an alt attribute to describe the contents of the image. This is essential for users that cannot see the image (like screen reader users), or as an alternate text when the image cannot be displayed.
7. Bad value “” for attribute “target” on element “a”: Browsing context name must be at least one character long. 2.81%
The target attribute on <a> elements can’t be blank.
8. Element X is missing one or more of the following attributes: “role”. 2.28%
An element is using ARIA attributes, but its role has not been defined. ARIA defines semantics that can be applied to elements, with these divided into roles (defining a type of user interface element) and states and properties that are supported by a role. Authors must assign an ARIA role and the appropriate states and properties to an element during its life-cycle, unless the element already has appropriate ARIA semantics (via use of an appropriate HTML element).
9. Stray end tag “X”. 2.20%
An end tag for X has been found that does not correspond to a previous open tag. This usually happens when you close the same tag twice.
10. Bad value “rocketlazyloadscript” for attribute “type” on element “script”: Subtype missing. 2.01%
The value rocketlazyloadscript used in a <script> tag is not a valid one according to the HTML specification. It is introduced by the WP Rocket Wordpress extension.
Ready to validate your sites?
Start your trial today.