Use HTML/xhml Coding Practices and Validate Code Rules

Markup

META (HTML4)

Use META tag to specify the character encoding of the web resource

DOCTYPE (HTML4)

Specify the DOCTYPE the page uses to validate HTML coding

Rules

Rules for Use HTML/xhml Coding Practices and Validate Code
# Testing Description Implementation
FAE Firefox
Accessibility
Extension
HTML.1 Pass/Fail HTML.1

Each page must include a DOCTYPE declaration to facilitate rendering and validation.

NI NI
HTML.2 Pass/Fail HTML.2

The character encoding of each page should be specified.

Requirement Notes

  • The character encoding of each page should be specified within the value of the content attribute (using charset=) on a meta element that also includes an http-equiv attribute set to “content-type”.

Implementation Notes

  • For example, if the character encoding is UTF-8, it could be specified in XHTML with: <meta http-equiv=“content-type” content=“text/html; charset=UTF-8”/>
NI NI