Visa Accessibility - Doctype (PAG-002)
VGAR Page Requirements
Doctype (PAG-WEB-002)
Provide a !DOCTYPE statement
Setting the correct document type allows assistive technologies to know what rules to follow while parsing. This level of formatting removes ambiguity in the parsing process and allows greater coverage across different user agents. To determine the doctype declared on the page, open the page’s source code and look for the doctype at the beginning of the HTML code.
Requirements
Doctype (PAG-WEB-002-01)
A valid doctype MUST be set for all pages.
Test Procedures
HTML Validator (PAG-WEB-002-01-T)
- Run an HTML automated validation tool on the page
- Check the page for the presence of a valid docypte declaration
Related Content
WCAG Success Criteria
W3C Techniques
- G134: Validating Web Pages
- G192: Fully Conforming to Specifications
- H88: Using HTML According to Spec
- H74: Ensuring that opening and closing tags are used according to specification
- H94: Ensuring that elements do not contain duplicate attributes
- H75: Ensuring that Web pages are well-formed