Rule HTML-2
The character encoding of each page should be specified.

Description

Best Practice Type: Pass/Fail

  • 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”.

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”/>

Markup

META (HTML4)

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

Associated Accessibility Guidelines and Standards

Guideline or
Standard
Requirement Priority Test
Type
IITAA 1.1 Use valid, standard web programming code. Required Violation
Section 508 none none
WCAG 1.0 11.1 Use W3C technologies when they are available and appropriate for a task and use the latest versions when supported. Required Violation
WCAG 2.0 4.1.1 Parsing: 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. Required Violation

Examples

none

Evaluation Techniues

none

Testsuite Tests

none