Component Library
Code Errors - HTML
Issue Description
Errors in HTML code can create issues and confusion for assistive technology users.
Recommendation
In content implemented using markup languages, elements have complete start and end tags, elements are nested according to their specifications, elements do not contain duplicate attributes, and any IDs are unique, except where the specifications allow these features.
- Ensure HTML elements have complete start ( < > ) and end ( </ > ) tags where needed.
- Nest all HTML elements correctly (for example, list objects within an ordered or unordered list).
- Ensure that elements have unique IDs.
- Check that HTML elements don’t contain duplicate attributes.
Use an HTML validator tool to check code before publishing live.