Book Image

KnockoutJS Blueprints

By : Carlo Russo
Book Image

KnockoutJS Blueprints

By: Carlo Russo

Overview of this book

Table of Contents (12 chapters)
KnockoutJS Blueprints
About the Author
About the Reviewers

Updating the code to be accessible

In this section, we are going to create a widget to substitute the code for the gender field.

Before going with the code, let's see what you should know about accessibility.

A few words about accessibility

Before starting with the code, I just wanted to point out to you some information about accessibility.

You can find the most important guidelines for accessibility at these URLs:


I found the easiest way to build an accessible web application is by following the hints found at the Google I/O 2011 presentation:

  • Use clean HTML and use standard tags whenever possible

  • Manage focus

  • Add key handlers

  • Add ARIA for screen readers

Remember also to download and use additional software (such as the ones you can find at: to check the code you write for the accessibility.


These are some tools I suggest you use:

  • ChromeShades, Wave Toolbar, and HTML_CodeSniffer...