A study on Web Accessibility

Posted on November 20th, 2006 at 7:09 pm

During the redesign of this site I had to take into consideration the current hot topic of web standards, accessibilty. This is where you design your site with respect to people with disabilities, such as blindness, so that it can be viewed in as many different kind of browers and screen readers as possible. There are laws, such as the Disability Discrimination Act UK and US Section 508, demanding that public bodies make their websites fit certain criteria. This makes web accessibility a valuable skill to add to your arsenal. It was also the topic of the recent Brighton & Hove web awards keynote speech by Kevin Carey, the head of HumanITy, a digital inclusion charity. The good news is that accessibility and Search Engine Optimisation (SEO) share the common traits of demanding well-writen code in line with web standards so there are also financial reasons to adopt them.

During this sites redesign one of my main goals was to fix the poor CSS layout in an attempt to help its SEO. The old fluid layout technique had demoted the middle content to the bottom of my HTML file leaving the busy left and right bars sitting in the middle of the code. Search Engine robots often give up reading a sites content after a certain amount of code and stopped before they got to the actual post. This has now been fixed and the code is semantically sound with the correct use of headers and other CSS tags (with no hacks) allowing me to post my CSS validation badge at the bottom of the sidebar. To get a better understanding of this you should view the source of this web page and you’ll be able to almost read the site yourself (in Internet Explorer go to view/source and in Firefox press CTRL-U.) If most of it makes sense to a human then it should work better on all devices.

After last Wednesday’s post on the live implementation I thought there might be nothing left to change on this site. The PHP templates were fixed, the CSS was fixed, the design had improved by a factor of 10, what else was there to do? After adjusting the rightbar adverts and the comments form I thought I had finished. It was only after I decided to check my site out with some online validation tools I realised there was a lot more to do. The goal was to get one of these:
Web Accessibility Validation Certificate and to do that I needed to get a pass from a range of different sources. I did well and made around 10 changes that have increased the accessibility by quite a margin. I now present a list of different validation sites, along with comments on why this site failed to pass.

Cynthia Says. My site passed the Section 508 test and only came up with a few warnings, not fails, on the WCAG tests. One problem was with the alternative text of images (the description of the image). You are meant to use an ‘alt’ tag so that people whose browsers have images disabled can still know what the image was. Blind people should also be able to read the image description, not guess what it is from the filename. I enter these descriptions when I create each post and I can often get lazy and ignore them. The recommendations are that the descriptions should be between 7 and 81 characters long and I will endeavour to include these from now on.

TAW. This validation service checks your site against WCAG 1.0 standards up to level AAA (priority three) and is the best looking of the lot. Instead of a list it actually visibly highlights problems across your web page making identification of problems much easier. KingOfMyCastle.com passes Priority 1 & 2 but falls over with only one instance of failure to comply with Priority 3. The mistake is with the search box on the right. I am advised to put some text into this box as some screen readers have difficulty when they are empty. Aesthetically, I felt this was wrong so I have left it blank.

ATRC. This checker validates your site to WCAG 2.0 Level 2 on it’s default setting. Unfortunately my site fails on only one factor, a dodgy link created by WordPress. This link has no text to actually click, which is what the validator complains about. Solving this would involve making changes to the WordPress engine itself, something I’m not about to do. Oh well, at least this isn’t my fault.

EvalAccess 2.0. Ouch! This one threw up over 250 problems and 600 warnings although Priority 1 was clean and Priority 2 had only one issue. The issue was that it didn’t ‘associate labels explicitly with their controls’ in the search area on the right. To fix this would mean putting some text next to the search button saying ‘Press this to search’ which I feel is unnecessary on a submit button. Most of the issues thrown up on Priority 3 are with Access Keys which allow the reader to move to specific links using shortcuts, rather than the mouse. A good article about access keys can be found at A List Apart and it’s well worth the read if you’d like to know more about this underused and badly supported feature.

So that’s the automated experts view on my source code but what do I think? Well, I’m upset that I can’t display the badge proudly at the bottom of this site but I’m not a government organisation which lets me off. This is just some place on the web I dump a number of links, images and articles I think people may find interesting. However, the improvments from the last design are numerous. Just try increasing the font size (CTRL scroll wheel) and you’ll see that the site doesn’t break as before. The markup is much more cleaner and I’m sure that anybody using a device other than a standard web browser will be having a much better experience than they were last week. I’ll just chalk this one up to a big experience gain on my part.

6 comments so far.

  1. Benjamin Hawkes-Lewis on the November 20th, 2006 at 11:20 pm said:

    Just to warn you, this comment form doesn’t appear to give any feedback that a comment has been posted and is now in moderation.

  2. Benjamin Hawkes-Lewis on the November 20th, 2006 at 11:23 pm said:

    Hmm worked that time. Maybe I messed up posting somehow. Apologies if this is a repeat:

    I’m glad you’re working to make your site more accessible. I just wanted to help out by adding a few constructive comments. In general, I distrust accessibility checkers even more than I distrust markup validators; accessibility’s so complex, so dependent on testing, and above all so contentious that one really needs to consider each guideline and piece of advise on its own merits.

    Unfortunately, WordPress makes designers interested in accessibility do a lot of work:

    http://www.brucelawson.co.uk/index.php/2005/wordpress-accessibility-hacks/

    Correct me if I’m wrong, but judging from problems with your comment form you only checked your homepage. For instance, have a look at its first field:

    name (required)

    The INPUT element (/>) is closed as you would close it for XHTML not HTML. The LABEL is not explicitly associated with its INPUT using the FOR attribute. Also, enclosing LABEL in P is unnecessary markup bloat. Should be more like:

    Name (required)

    Your comment form really needs to specify what sort of markup or markdown, if any, can or should be used. As you’re a web designer, it would be worth explaining how to include code samples in comments too.

    Another random point is that you should be putting acronyms (initialisms pronounced as a single word like NASA) in ACRONYM and all other abbreviations inside ABBR. It’s best to place the expansion of the acronym or abbreviation in the TITLE attribute for the element. If a visitor is likely not to know the correct expansion, you should expand the acronym or abbreviation in your text too, since user agents are not required to expose the TITLE attribute. For this post, the WAC blog’s recent entry on accessibility acronyms and abbreviations may prove handy:

    http://www.rnib.org.uk/wacblog/general/web-accessibility-acronym-starter-pack/

    You say: you’re ‘sure that anybody using a device other than a standard web browser will be having a much better experience than they were last week’. Well you may wish to try some non-standard browsing for yourself. Lynx (a text browser) runs on Mac, Windows, and Linux, and there are several free or demo screen readers you can test with:

    http://www.benjaminhawkeslewis.com/www/accessibility/free-screen-readers.html

  3. KingOfMyCastle on the November 20th, 2006 at 11:40 pm said:

    Hi! The comment was probably held in moderation because of the links. Since I\’ve installed Askimet I should be able to turn the link factor off of the WordPress filter. Glad I had a quick look at the dashboard before I went to sleep.

    Yes you are right, I only checked the main page. So this page will probably have a few issues I need to address. And I do appreciate you pointing me on the right direction on this. It\’s good to know that you see accessibility as an art rather than a science. And the difference in all those validators prove that there isn\’t one way of doing things.

    I\’m quite new to forms so I dont feel as comfortable as I should with their code. I got everything I know about forms from an article on A List Apart so maybe it\’s time to do some more studying. I\’ll also look into the ACRONYM and ABBR tags too.

    Anyway, thanks for your advice. I appreciate all your input.

  4. Rosie Sherry on the November 21st, 2006 at 9:25 am said:

    It’s always good to see improvements being made, however be careful of taking the approach of trying to satisfy automated checks and placing badges on your site.

    There are so many factors that make a website accessible or inaccessible that it is important not to get carried away by automated checks. Best thing to do is think about things from a users perspective.

    How would a blind person cope with your site? - Close your eyes (or switch of your monitor) and see if you can use the site. Use a screen reader to see how well your site reads.

    How would a non-mouse (ie. keyboard only) user cope with your site? Use your key board only to see how well you do.

    Think of core tasks that users need to do. What is the purpose of the site? Can people perform these tasks?

    And the list can go on, but this should give you an idea of where I am coming from and going to.

    I maintain a couple of websites that are updated regularly and may be of interest, in relation to web accessibility and software testing:
    http://www.rosiesherry.com/blog
    http://www.drivenqa.com/

  5. mike ashworth on the November 21st, 2006 at 10:31 am said:

    Hi john,

    Good stuff. With regard to usability (more so than accessability) a good thing to try is to ask someone to use your site whilst you observe what they do when they are there.

    couple of useful links
    http://www.sensible.com (the book he publishes titled “dont make me think” is very good indeed)
    http://www.useit.com

  6. KingOfMyCastle on the November 23rd, 2006 at 6:21 pm said:

    Thanks for all the advice. All of it has been taken onboard.

    I’ve now changed the comment form so that its much more accessible. It passed a 508 online validation.

Please add a comment