Valid Code (PAG-WEB-001)

Write valid HTML or at least well-formed code

Document structure and semantics are important to ensuring assistive technology (AT) properly parses code so it can communicate correct information to users. Using well-formed HTML is the first step towards ensuring the accessibility of a web page or application for AT users.


Valid Code (PAG-WEB-001-01)

All HTML pages MUST have code that is fully valid.

Test Procedures

HTML Validator (PAG-WEB-001-01-T)

Run an HTML validator on the page and check that no errors are present. Ensure that the validator is executed against the fully rendered html for the page.

  • i.e. Inspect the web page, select the entire document, select "Edit as HTML", copy and paste the rendered html page source into the W3C validator tool along with the proper doctype/etc (as applicable).

Related Content

WCAG Success Criteria

W3C Techniques

Common Failures

These materials and steps outlined on this website are provided “AS IS” and are intended for illustrative purposes only. They should not be relied upon for marketing, legal, tax, financial, regulatory or other advice. You are responsible for the legal aspects of any implementation of the concepts illustrated herein. Further, Visa neither makes any warranty or representation as to the completeness or accuracy of this information, nor assumes any liability or responsibility that may result from reliance on such information.  You should not act or rely on such content without seeking the advice of a professional.  All brand names, logos and/or trademarks are the property of their respective owners, are used for identification purposes only, and do not necessarily imply product endorsement or affiliation with Visa.