WD-WAI-PAGEAUTH-0414 WAI Accessibility Guidelines: Page Authoring W3C Working Draft 14-Apr-1998 This version: http://www.w3.org/TR/1998/WD-WAI-PAGEAUTH-0414 Latest version: http://www.w3.org/TR/WD-WAI-PAGEAUTH Previous versions: http://www.w3.org/WAI/GL/WD-WAI-PAGEAUTH-0413 http://www.w3.org/WAI/GL/WD-WAI-PAGEAUTH-0410 http://www.w3.org/WAI/GL/WD-WAI-PAGEAUTH-0203 Editors: Gregg Vanderheiden, Trace Research and Development Wendy Chisholm, Trace Research and Development Ian Jacobs, W3C Please see the Acknowledgements section of the Appendix for a full listing of contributors. Status of this document This is a W3C Working Draft for review by W3C members and other interested parties. It is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to use W3C Working Drafts as reference material or to cite them as other than "work in progress". This is work in progress and does not imply endorsement by, or the consensus of, either W3C or members of the WAI GL Working Group. This document has been produced as part of the W3C WAI Activity, and is intended as a draft of a Proposed Recommendation for authoring accessible Web pages. The goal of the WAI-GL working group is discussed in our charter. Abstract This document is a list of markup guidelines that HTML authors should follow in order to make their pages more accessible for people with disabilities and more useful to indexing robots. Following the list of guidelines is a checklist that authors and Web masters should use to verify page accessibility. Tools that generate documents in HTML (authoring tools, file conversion packages or other products) should produce documents that follow these guidelines. This document is part of a series of accessibility documents published by the Web Accessibility Initiative. Comments Please send detailed comments on this document to w3c-wai-gl@w3.org. Public comments about the WAI author guidelines can also be sent to this mailing list. Note. Some people have encountered problems printing this page due to the use of style sheets. We have tried to correct the problem but ask that people help us explore solutions. Table of Contents Introduction Rating and Classification 1. Style and Structure 2. Images and Image Maps 3. Applets and Scripts 4. Audio and Video 5. Tables 6. Links 7. Frames 8. User-Input Forms 9. If All Else Fails... 10. Good Web Site Design Practices Appendix A - Table examples Appendix B - Alt-text authoring guidelines Checklist Acknowledgements References Introduction This document recommends guidelines that HTML authors should follow in order to improve the accessibility of their pages. Some of the guidelines take advantage of the features of HTML 4.0, but many of them apply to earlier versions of HTML as well. Measures to improve accessibility fall roughly into the following categories: Structure HTML documents that contain a lot of markup used for presentation and not enough markup to convey structure pose accessibility problems for non-visual users. Authors should use HTML structural markup to convey meaning and style sheets to format and layout pages. Navigation Authors should enable keyboard-only navigation (access to hyperlinks, navigation among links, navigation among form fields, navigation within and between pages) and design pages that promote easy orientation (numbered lists, titles, etc.). Alternative format Authors should always provide alternative ways to access information presented via images, sounds, applets, and scripts. For example, captions and transcripts provide auditory information in a form accessible to people unable to hear it. A textual replacement of a graphic, either a description of its content or function, provides information in a form accessible to people unable to see it. The following sections offer specific guidelines that HTML authors should use to improve the accessibility of their pages. Rating and Classification Each guideline is accompanied by a rating that describes its importance: [Required] Required, otherwise it will be impossible for one or more groups of users to understand the page. [Recommended] Makes page easier to understand and use. Each guideline may be implemented by one or more "strategies" in HTML (and possibly a style sheet language). Each strategy may be classified according to the immediacy of its application: [Interim] This strategy is necessary to make pages accessible for today's browsers and assistive technologies [New] This strategy takes advantage of features being incorporated into tomorrow's browsers and assistive technologies (that incorporate Web Access Initiative recommendations). Strategies with no classification work for versions of HTML prior to HTML 4.0, and old or new browsers. 1. Style and Structure 1. [Required] Use elements and attributes that comply with an HTML 4.0 Document Type Definition (DTD) and CSS-1. The W3C offers an HTML validation service at http://validator.w3.org/ that can be used to determine if a site complies with one of the HTML 4.0 Document Type Definitions (there are three: strict, transitional, and frameset - see the validation service for more information). It is recommended, but not currently required, that pages comply with the strict definition. 2. [Required] Ensure that pages are readable and usable without style sheets for browsers that do not support them or users who deactivate them. Since style sheets are a new phenomenon, older browsers will not support them and it will take a while for new browsers to support them in a standard way. 3. [Required] Nest headings properly. Since some users skim through a document by navigating its headings, it is important to increment heading levels correctly (H1 followed by H2, rather than H1 followed by H3). Headings used for other purposes, such as formatting text in a larger font size, may disorient users; use style sheets for formatting. Note. See items 9 and 10 in this section. 4. [Required] Encode list structure and list items properly. The HTML list elements (DL, UL, OL, LI) should only be used to create lists. Avoid using list elements for presentation effects such as indentation. [New] Use style sheets rather than HTML attributes to control item spacing. Note. See item 7 in this section. 5. [Required] Avoid blinking or scrolling text. [Interim] Authors should avoid the BLINK and MARQUEE elements. First of all, these elements are not part of HTML 4.0 (they are proprietary extensions and should be avoided. See item 1). Second, blinking and moving text is either read incorrectly or not at all by screen readers, can adversely affect people with cognitive disabilities, and is often annoying to people in general (see Jared Spool's book, "Web Site Usability"). Authors should use style sheets to draw attention to text in other ways, such as different fonts, sizes, or colors. 6. [Recommended] Use style sheets rather than converting text to images. For example, stylized text on a colored background can be created with style sheets instead of as an image. This provides flexibility for people to view the text in a form that is most readable to them including magnified, in a particular color combination such as white on black, or in a particular font. 7. [Recommended] Use style sheets rather than invisible or transparent images to force layout. Note. Current (April 1998) browsers do not yet support use of style sheets for some types of positioning, such as absolute. 8. [Recommended] Avoid the use of deprecated presentation elements and attributes (as well as B and I). Authors should use style sheets instead of presentation elements (TT, and FONT) and attributes ("align" and "background") that control visual presentation. Authors are encouraged to use elements (such as STRONG, EM, H1, H2, ABBR, etc.) that add structure to documents. Documents that use style sheets for presentation allow users to adjust the look of the document (e.g., larger print, color contrast, etc.) through personal style sheets or browser settings. 9. [Recommended] Use elements and attributes that appropriately convey structure. Phrase elements include: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, and ACRONYM Structural elements: H1, H2, etc. Structural elements enforce consistency in documents and supply information to other tools (e.g., indexing tools, search engines, programs that extract tables to databases, browsers that use header elements ( H1, H2, etc.) to generate navigation tools, etc.). 10. [Recommended] Do not misuse structural elements and attributes for purposes of layout. For example, do not use the BLOCKQUOTE element to indent a paragraph that is not a quotation; use style sheets. Do not use PRE to create a tabular layout of text; use tables. 11. [Recommended] Do not misuse presentation elements for purposes of structure. For example, while a horizontal rule (HR) might convey a structural change to some users, it may not to all users. Instead, specify structure with DIV and SPAN. For example: 12. [Recommended] Provide titles for horizontal rules, acronyms, and abbreviations. For example:
ID WWW Tips and Tricks ? To test if the text and background contrast is sufficient enough to be read by people with color deficiencies or on low resolution monitors, print pages on a black and white printer (with backgrounds and colors appearing in grayscale). ? To get a better understanding of what a screen reader would present to a user, do not load the images on a page when viewing with a graphical browser or use a text-based browser such as Lynx or a Lynx emulator such as Lynx Viewer or Lynx-me. ? Using a numbered (ordered) list makes it easier for people accessing the page aurally to keep track of where they are within a list. For more information: 1. Style Sheets - Chapter 14 in the Central Reference Document 2. Style Sheets - the HTML 4.0 specification 3. Cascading Style Sheets, level 2 -- Working Draft from the World Wide Web Consortium 4. Text - Chapter 9 in the Central Reference Document 5. Text - the HTML 4.0 specification 6. Lists and Outlining - Chapter 10 in the Central Reference Document 7. Lists - the HTML 4.0 specification 2. Images and Image maps Please also consult the section on links. 1. [Required] Provide alternative text for all images and image maps. Each image should have alternative text that represents the function of the graphic. Aim for a functional label based on the context in which it is used rather than a visual description. A good test to determine if alternative text is useful is to imagine reading the document aloud over the telephone. What would you say upon encountering this image to make the page comprehensible to the listener? Possible strategies for providing alternative text include: 1. The "alt" attribute is mandatory for the AREA and IMG elements. It should also be used for buttons used as submit buttons on forms (INPUT and BUTTON elements). For example: Search. However, the recommendations for alt-text vary depending on how the graphic is used (decoration, button, bullet, illustration, etc.). Please see Appendix B - Alt-text authoring guidelines for more information. 2. [New] If OBJECT is used, text can be provided in the body of the OBJECT element. For example: Search Note. Longer descriptions of the appearance of an image may be provided. See the next recommendation for solution strategies. 2. [Required] Provide a longer description for graphics that present important information (especially charts, tables, and diagrams). Alternative text (see strategy 2.1 above) is usually short and defines the basic purpose of a graphic element. To describe the graphic itself in more detail, supply a longer description with one of the following mechanisms (most of these methods link to additional information): 1. [Interim] Provide a description-link (D-link) next to the graphic. The D-link links to a page or a phrase at the bottom of the page with a longer description of the graphic. For example: Sales for 1997 D 2. [New] Use the "longdesc" attribute of the IMG element. For example: Sales for 1997 3. [New] Provide text within the body of the OBJECT element: Sales in 1997 were down subsequent to ... 4. Include internal text in image data file when the image data file format supports it, e.g., PNG. 3. [Required] Ensure that image map information is accessible and keyboard navigable. The easiest way to satisfy this recommendation is to use a client-side image map since browsers that are not displaying graphics can use "alt" or "title" attribute values of AREA elements to present a list of links in place of the image map graphic. Keyboard navigation to areas within the image map is also possible since the browser knows the coordinates of the defined areas. When a server-side image map must be used, authors should provide an alternative list of image map choices. If an alternative list of links follows the image map, authors should indicate with the "alt" attribute of the IMG element the existence and location of the alternative list. A more straightforward solution, although newer and less backwards compatible, is to include the alternative links within the body of an OBJECT element (see examples below). One final possibility is to create an alternative page that is accessible. For client-side image maps, there are several solution strategies: 1. If the MAP element has been used with AREA, set the "alt" attribute of the AREA element. For example, with the IMG element: Image map of areas in the library Reference Audio Visual lab 2. [New] The same idea, this time using the OBJECT element with flexibility to include more information: There are several areas in the library including Reference and the Audio VisualLab. More text can follow or precede. Reference Audio Visual Lab 3. [New] The MAP element can be used with A elements to specify active region geometries and provide contextual information.

Navigate the site: Access Guide | Go | Search | Top Ten

Note in this example that the MAP element is the content of the OBJECT element so that the alternative links will only be displayed if the image map (navbar1.gif) is not. 4. [Recommended] Provide descriptive titles for images used as links. Use the "title" attribute of the A element to provide more information about images used as links. For example: Search 5. [Recommended] Avoid ASCII art. Replace it with an image and alternative text. Common typographic characters or constructions to be avoided are emoticons and arrows consisting of dashes and greater than signs (e.g., -->), etc. For more information: 1. From the Central Reference Document 1. 13.1 Introduction to the issues 2. 13.2 General recommendations 3. 13.3 Viewing and interacting with static images and image maps 2. Objects, Images and Applets - the HTML 4.0 specification 3. Applets and Scripts 1. [Required] Provide alternative presentations of content for each script and applet that conveys information. 1. [New] The NOSCRIPT element allows authors to supply alternative presentations of content for scripts. For example: