 |
Making your web pages accessible
The html templates have been validated to level 1 cynthia compliance, so you can test your web pages for accessibility compliance.
Listed below are some common useful changes you can apply to your code to improve web accessibility.
N.B. As with the xhtml validation, we do not have time to check every page!
A good example of a web submission form that conforms to these guidlines is /Tools/clustalw2/
- Install web developer into firefox.
- Using the the right mouse menu select: Web developer>tools>validate WAI.
- You will now get a cynthia report for your chosen web page.
Known Issues/Annoyances
-
Rule: 10.5 Until user agents (including assistive technologies) render adjacent links distinctly, include non-link, printable characters (surrounded by spaces) between adjacent links.
This is a rather annoying rule that effects the breadcrumbs, to validate, you must use a work-around, you must add text between the links, to do this in a hidden fashion (as in the breadcrumbs above, use the following syntax:
Useful work practices
- Rule 5.5 Provide summaries for tables.
provide summary attributes to tables, for example:
It is worth noting, where possible tables should not be used for layout any more, they will pass validation with a summary attribute. Tables should still be used to represent tabular data.
- Rule: 1.1.2 - All INPUT elements are required to contain the alt attribute or use a LABEL.
Rule: 9.5 Provide keyboard shortcuts to important links (including those in client-side image maps), form controls, and groups of form controls.
Provide access keys to form elements, for example:
- Rule: 1.1.2 - All INPUT elements are required to contain the alt attribute or use a LABEL.
Provide alt and title attributes to form elements, for example:
- Rule: 1.1.2 - All INPUT elements are required to contain the alt attribute or use a LABEL.
Rule: 12.4 Associate labels explicitly with their controls.
Provide label attributes for text that describes form elements, for example:
- Rule: 1.1.1 - All IMG elements are required to contain either the alt or the longdesc attribute, for example:
- Rule: 4.3 Identify the primary natural language of a document.
Rule: 4.3.2 - The HTML (Root) element must use the 'lang' attribute, for example:
- Rule: 11.3 Provide information so that users may receive documents according to their preferences (e.g., language, content type, etc.)
, for example:
- Rule: 14.3 Create a style of presentation that is consistent across pages.
This is why we have common templates and stylesheets...
- Rule: 1.5.1 - Identify all MAP elements that use the AREA element, for example:
- Rule: 1.1.6 - All IFRAME elements are required to contain element content, for example:
- Rule: 3.5 Use header elements to convey document structure and use them according to specification.
These are the default styles and should be used where possible, for example:
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Heading 7
Useful Links
For more information on accessability, please see http://www.w3.org/WAI/.
Firefox download.
Firefox web developer extension download.
 |
<div class="breadcrumbs"> <a href="/" class="firstbreadcrumb">EBI</a> <div class="blindspacer">[blind spacer]</div> <a href ="/inc/template/guide.html">EBI Style Templates</a> </div