Introduction Accessibility and The Law Accessibility Issues in Web Pages
Areas for Improvement Recommendations for Maximizing Accessibility
Assisting Navigation Identifying Elements and Accessing Alternate Content General Recommendations CSS Style Sheets Testing Your Sites and Applications Page 2
Server Control Accessibility Enhancements in ASP.NET 2.0
Example 1: Accessibility with Htmllink and GridView Controls
Linking a css stylesheet with the new htmllink control connection a label control and specifying a hotkey page 3
Captions, Scope, And Headers Attributes in The GridView Control
Adding a Table Caption Specifying Meaningful Column Names Specifying the Row Header in a GridView Control Viewing the Results in the IBM Home Page Reader About the Author download sample code Introduction Some two years ago, I was honored to be part of the design review panel for ASP .NET, looking at the proposed feature set for version 2.0. that seems a long time ago now, but one of concerns I expressed at the time was that ASP.NET should provide better support for developers to add features to their pages that improve accessibility for all users. The World Wide Web Consortium (W3C) and many other industry bodies have long been pushing for wider support across all sites for disabled and disadvantaged users, many of whom use special types of user agent to access Web pages. The W3C issues Guidelines Under The Umbrella of The Web Accessibility Initiative (Wai), Whose Mission IS "... to Lead The Web to Its Full Potential ..." incrudes amongst its Goals "Promoting a high Degree of USAB ility for people with disabilities "(see http://www.w3.org/WAI/ for more details). Other sites provide useful guides, software, and tools that make it easier to build and test pages that maximize accessibility. You only Have to search the Web for "Web Accessibility Guidelines"
to get some idea of the variety and number of sites devoted to this topic. However, this article is not a general reference to accessibility issues or a primer on building accessible pages. What it does cover is how the ASP.NET team at Microsoft has added new features to the Framework that you can take advantage of in your Web applications to more easily provide better support for alternative types of browsers and user agents. It involves little extra effort on the part of the developer but can make the world of a difference to users. Accessibility and the Law While the issues of providing reasonable accessibility for as large a proportion of the population as possible might seem to be justifiable on their own, you also have to consider the legal ramifications of not following such a policy. As in Most Walks of Life, Governments Are Unwilling to Leave It To Industrial To Manage Their Own Affairs. To Some Extent, this Is Understandable - The W3c Accessibility Initiatives Have Been Around for a while, yet recent surveys show that only a small number of "large commercial Web sites" (around 20%) have made any real attempts at implementing them. In the US, the accepted standards are based on the Section 508 Standards for Electronic . and Information Technology (see http://www.access-board.gov/sec508/guide/) These were originally aimed at companies providing products or services to government departments and public bodies, stating that: "Any organization or company that contracts With the Federal Government Must Ensure That ITS Web Site and Electronic Data Are Available To The Public In a Manner That IS Access To People With Disabilities. "Contracts with" Contracts with "Contracts with
is becoming more tenuous as time goes by ... In Europe, in June 2002, the eEurope Action Plan was adopted by the Feira European Council. One of the specific targets of this plan is to improve access to the Web for people with disabilities and , of course, to adopt and implement the results of the Web Accessibility Initiative project A statement from the council says that:. "In Europe, we have now clearly established that actions must be taken to identify and remove these [accessibility] barriers The. european Commission is fully committed to this goal. "in the United Kingdom, a 1999 Act of Parliament, The Disability Rights Commission Act is in force, and in 2003 the commission began a formal (and ongoing) investigation into Web site accessibility for disabled people . It is currently carrying out "... a systematic evaluation of the extent to which the current design of websites ... facilitates or hinders use by disabled people in England, Scotland and Wales." It is also performing "... ana lysis of the reasons for any recurrent barriers identified by the evaluation ... "and producing" ... recommendations for further work which will contribute towards enabling disabled people to enjoy full access to, and use of, the Web. "Probably the most direct and unequivocal indication of the way governments around the world are beginning to involve themselves in accessibility issues is from Australia Dr. Sev Ozdowski, the acting Disability Discrimination Commissioner at the time, said:. "
Under the Federal Disability Discrimination Act - as well as under equivalent laws in all Australian States -. It is unlawful to discriminate against a person on the grounds of their disability by having a Web site which they can not access "..." The World Wide Web Consortium has developed Web access guidelines, and non-compliance with them by the operators of Australian Web sites is in breach of the Act. "and, to demonstrate how the Australian law has already been applied, probably the most famous of all actions taken by disabled Web users was when Bruce Maguire (a blind person) cited the Act in a claim against the Sydney Organizing Committee for the Olympic Games, which were held in 1999/2000. He complained to the committee that images on the Olympics.com Web site had no text equivalent for screen readers and Braille displays. SOCOG failed to react to directives and were fined A $ 20,000. There are similar clauses in the UK Disability Discrimination Act, the US Americans with Disabiliti es Act, the Canadian Human Rights Act, plus various provincial, state, and territorial human-rights codes Following settlement of the claim and the subsequent fine on SOCOG, the Toronto-based Web Content Consultancy contenu.nu stated that:. "The case Of MAGUIRE VS. Socog Will INEVITABLY COME INTO Play As a Precedent for Legal Cases Worldwide. "
Accessibility Issues in Web Pages Web pages today are very different from the original vision of the World Wide Web pioneers. They saw it as a sharing and publishing environment for scientific information, rather than the public network offering online retailing, the source of references material on every topic under the sun, and the general entertainment arena that it has now become. Wide public access and the continuing commercialization of the Web have brought changes in the type of content it offers. The most remarkable change has been the move away from the functional , mainly text-based, types of pages. Today, the Web is ruled as much by designers and graphic artists as by developers and network specialists. Web pages have become more complicated. No longer is it permissible for your company "home page" to Contain a picture of your offices and a simple text menu for the service you offer. Now you have to have drop-down or pop-up menus with myriad links, graphics (Preference Anima ted), and dozens of headlines that lead to press releases, new product details, or testimonials of your services. All this is fine if your visitors can look at the page and easily identify the areas that interest them, or scan up and down the Links to other pages looking for what the want. and shop the stray to the wrong page, it '
s usually pretty obvious from a quick glance. However, things are nowhere near this easy for all visitors. A proportion of visitors will have difficulties with most current Web sites, which are designed almost without exception for people who have reasonable eyesight and are using a pointer device such as a mouse, trackball or graphics tablet. There are many people to whom one or both of these conditions can not be applied. Often they will be using a specially designed user agent, or maybe a simple text-based browser. or it might be aural page reader, which reads the contents of pages out loud, or a Braille reader that translates the text into a format that can be read by fingertip on a special output device. For all these types of device, even the most basic Web site or Web application (designed and tested only in a modern graphical browser such as Internet Explorer) can be hard to read. At best, navigation through the site can be challenging, and certain parts of the content may be me aningless. Graphics and pictures will not be displayed on text-based devices, while color-blind users may not be able to distinguish between the different lines or pie segments in your charts. At worst, it may be completely impossible use online forms, To Even Access Parts of The Site At All. Areas for Improvement Accessibility Problems for Web Sites Generally Fall Into Three Areas:
Navigation issues - how easy is it to find and load specific pages without images and without the traditional pointing devices Visual content issues -? Do parts of the site depend solely on images and / or colors to provide information, which color-blind, partially sighted and blind users will not be able to access Data input issues -?? on pages where the user has to interact with controls, is this possible without a mouse, graphics tablet or other type of pointing device Unfortunately, it's not easy to cleanly subdivide the techniques you should be using to improve accessibility into these three simple categories. Some features span more than one category, as you'll see when we look at them in more detail. This article is about the accessibility improvements in ASP.NET 2.0. These improvements are mostly implemented as new or updated features for the sever controls that are a fundamental part of ASP.NET. So, it makes sense to look at them on a control-by-control basis. However, for co mpleteness, we've summarized the general technical recommendations that are part of the W3C Web Accessibility Initiative in the next section. Not all of the topics it covers are applicable to this article, as they are not directly achievable just through the enhancements to the ASP .NET 2.0 control set. Recommendations for Maximizing Accessibility This section summarizes the recommendations for improving accessibility for visitors in your Web pages and Web applications. for more details see the W3C site at http://www.w3.org/TR/WCAG20/ Assisting navigation
Provide one or more hyperlinks that point to the content areas of each page as the first item in that page (before any headings, images, etc). These "skip to" links allow users to go straight to the content without having to navigate past your menu bars or other sets of site navigation links. Alternatively, use CSS absolute positioning to place the menu bars or site navigation links at the end of the page source, yet still allowing them to appear at the top or left of the page when rendered in the browser. Make the structural layout of every page similar (if this is appropriate for the content) Include a meaningful
element in every page Avoid self-referring links (links that reference the current page) Avoid meaningless text such as " click here "in hyperlinks Lay out the content of HTML tables so they can be read from left to right (rather than vertically) and still make sense Use
elements for the columns and row headings in a table Add a scope attribute to all Table Row A nd column headers, to indicate that the header cell identifies the data in that row (scope = "row") or column (scope = "col"). The new and updated server controls in ASP.NET 2.0 make this much easier Put control captions in the "expected" places on an HTML