WebAIM Blog

10 Easy Accessibility Tips Anyone Can Use

May 9, 2013

Today is Global Accessibility Awareness Day (GAAD). To celebrate and to help promote accessibility, here are 10 simple accessibility tips that most anyone can implement today into their web site’s HTML and CSS to make it more accessible.

1. Add Alternative Text to Your Logo

Alternative text is presented to blind screen reader users in place of images they cannot see. Every image that conveys content or has a function on your web site should be given alternative text. But to get started, adding alternative text to your site logo presents your company or organization name to help users know which site they are on.

Simply find your logo image in your markup, and if it’s not present, add an alt attribute with your company or organization name as its value.

<img src="webaimlogo.jpg" alt="WebAIM - Web Accessibility In Mind">

2. Add Basic Landmarks

ARIA landmarks identify significant page areas, giving them meaning and making them more keyboard navigable. There are several available landmark types, but simply adding 3 of them – main, navigation, and search – can greatly enhance the accessibility of your page. Find the elements on your page that surround or contain the main body content, main navigation, and site search (this one will probably be a <form> element) and add the appropriate landmark role attribute (role="main", role="navigation", or role="search". If your site uses HTML5 <main> or <nav>, add the role to these elements.

<div id="maincontent" role="main">

<form action="search.php" role="search">

3. Enhance Focus Indicators

Sighted keyboard users generally navigate through the links and form fields on a web page using the Tab and Shift+Tab keys on the keyboard. To help ensure they can visually identify which link or form field they have navigated to, you can add the following to your CSS file:

a:focus {
outline:1px solid red;
background:yellow;
}

The colors may need to be customized to fit your site design, but they should be fairly distinctive.

To take this tip one step further, you can search your CSS files for a:hover and in each instance change it to a:hover, a:focus. This will ensure that keyboard users get the same visual highlighting when they navigate to items as mouse users get when they hover over an item.

4. Identify Required Form Fields

If your form has a mix of required and non-required form fields, add the aria-required="true" attribute to each input that is required. This will identify them as required to screen reader users.

<input type="text" name="username" aria-required="true">

5. Make Your Page Title an <h1>

Your page title (not to be confused with the <title> element, though this should be brief and descriptive of the page content) is generally the big, bold text typically at the beginning of the main content that describes the content or functionality of that page. While a good heading structure for your entire document is great for accessibility, simply making your main page title an <h1> will facilitate page navigation and comprehension.

6. Identify Table Headers

If your site has data tables, you can make them much more accessible by marking up table header cells appropriately. Find the row and/or column headers (almost always the cells in the first row and first column) and make sure they are marked up using the <th> element (stands for table header) instead of the <td> element (stands for table data). The <th> element should be given a scope attribute value of col if it’s a column header or row if it’s a row header.

Change <td>Date</td> to <th scope="col">Date</th>

7. Identify Table Captions

Most data tables have short descriptive text immediately before the data table that describes that table. You can associate that description or table caption to the table itself using the <caption> element. This element should be the first thing inside your <table> tag.

For example, you would change
<p>Class Schedule</p>
<table><tr>....

to
<table>
<caption>Class Schedule</caption>
<tr>....

8. Avoid "click here"

Search your site for the words "click here". This link text is ambiguous for all users, but is particularly difficult for screen reader users. It always adds additional, unnecessary text. Change the link text to be more descriptive of the content or function of the link.

For example, you would change
<a href="prices.htm">Click here</a> for prices

to
<a href="prices.htm">Prices</a>

9. Remove tabindex

Search your site's code for any tabindex attributes. If the attribute value is 1 or higher, and you're not absolutely sure why it was added or that it was added correctly, remove this attribute. Tabindex specifies a keyboard navigation order, but almost always causes more accessibility issues than it solves. If your navigation order is not logical (you can test this by navigating with the Tab key), you should restructure your underlying code so that it is logical.

10. Check Your Page in WAVE

The WAVE web accessibility evaluation tool is an easy-to-use tool that gives you feedback about your web site and facilitates additional evaluation. Simply go to http://wave.webaim.org/, enter your web page URL, and hit the button to get feedback on your page's accessibility.

Low Vision Survey Results

April 29, 2013

Results of WebAIM’s recent survey for those with low vision are now available at http://webaim.org/projects/lowvisionsurvey/. A few highlights are found below. The results of our motor disabilities survey will be available soon.

This data underscores that users with low vision are very diverse. The range of vision loss varies greatly, as do the assistive technologies used. The vast majority of respondents use multiple assistive technologies, ranging from screen readers to simply changing text sizes in browsers. There is very high keyboard use in this population, strengthening arguments for ensuring keyboard accessibility.

For respondents that use a screen reader, ZoomText was the most popular, followed by JAWS and VoiceOver. Few respondents use System Access, Window-Eyes, or MAGic, and no respondents reported using ChromeVox.

Respondents report significant usage of mobile devices, with 13% of respondents using a mobile device as their primary device for navigating the web. iOS devices dominate in the mobile area, with 43% of respondents using these devices, and iOS users were more likely to use the accessibility settings of their mobile device.

Internet Explorer usage among respondents is notably higher than the overall population, perhaps suggesting lack of keyboard accessibility or assistive technology support in other browsers.

99.5% of respondents had JavaScript enabled when completing the survey.

Read the full low vision survey results at http://webaim.org/projects/lowvisionsurvey/.

Low Vision and Motor Disability Surveys

February 12, 2013

In the spirit of our popular screen reader user surveys, WebAIM has launched two new surveys – a Survey of Users with Low Vision and a Survey of Users with Motor Disabilities. We invite all individuals with these disabilities to complete these brief surveys.

The aggregate results of these surveys will be released publicly and will be used to inform design and development choices for those creating accessible web content. The surveys will remain open through March 15th.

Welcoming Dr. Sergio Luján Mora

January 11, 2013

We are happy to welcome Dr. Sergio Luján Mora to the WebAIM team. Sergio will be spending six months with WebAIM on sabbatical from the University of Alicante, Spain, where he is a professor of Computer Engineering. Photo of SergioSergio has established himself as one of the foremost experts in web accessibility in Spain and has written extensively on the topic.

We are excited to collaborate with Dr. Luján on WAVE development, design and analysis of additional WebAIM surveys, and other topics in the web accessibility field. It is not typical for someone to leave coastal Southern Spain to come to snowy, bitterly cold Utah in January (it snowed 4 inches last night and will be below freezing for at least the next week), so we hope the transition has not been too much of a shock for him. We’ve assured him that Northern Utah is the perfect place for him to enjoy some of his other hobbies – hiking and mountain climbing. We’re looking forward to 6 months of collaboration with such an esteemed colleague.

WebAIM’s 2012 Year in Review

December 20, 2012

As 2012 comes to its conclusion, we at WebAIM wish you all a Merry Christmas and Happy Holidays. A new year gives us an opportunity to reflect on the past year and look forward to the future.

WebAIM continued to provide web accessibility services throughout 2012. We provided 100′s of hours of trainings, including hosting three training sessions here in Utah. Our first Advanced Web Accessibility Training session was very popular and was attended by many that had attended previous WebAIM trainings. Our web accessibility evaluation and technical assistance clients ranged from small non-profits to several Fortune 500 corporations. We are encouraged by the quickening pace and increased momentum of accessibility across the web and are happy to be a part of it.

2012 also saw the beta launch of WAVE version 5. Work continues on the beta and we’re currently well underway on WAVE APIs and updated WAVE toolbars.

Here are a few WebAIM fun facts from 2012:

  • 2,531 – Posts to the WebAIM e-mail discussion list, our most active year yet
  • 3,312,000 – Distinct e-mails sent via the discussion list.
  • 59 – Approximate number of computer crashes caused by JAWS
  • 184,000 – WebAIM blog spam comments blocked by our spam filter.
  • 111,000 – Number of airline miles flown by WebAIM staff
  • 366 – Days this year in which Section 508 was still not updated
  • 211 – Countries represented by WebAIM web site visitors
  • 379 – Gigabytes of content downloaded from the WebAIM web site
  • 29% – Browser usage on the WebAIM site for three separate browsers – Firefox, Chrome, and Internet Explorer
  • 1,025,000 – Number of web pages analyzed with the WAVE web accessibility tool, excluding countless millions others by the WAVE toolbar.
  • 2 – Number of children born to WebAIM staff
  • 372 – Approximate number of diapers changed by WebAIM staff and spouses
  • 1,782 – Number of responses to our fourth screen reader user survey

Cyndi, Jon, Tom, Dio, Denise, Paige, Cecily, and I look forward to 2013 as we continue our mission of increasing web accessibility for people with disabilities.

WebAIM is an initiative of:
Center for Persons with Disabilities (CPD) Utah State University