Creating Accessible Web Forms Sandy Clark Constella Group

Slides:



Advertisements
Similar presentations
AHEAD HTML Accessibility Topics: Keyboard Accessibility Content and Structure Links Headings and Lists Images in HTML Pages Tables Forms.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Svetlin Nakov Telerik Corporation
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
Adapting Technology Changing Lives Web accessibility Web accessibility and Disability A Practical introduction Robin Christopherson and Curt Holst AbilityNet.
Tutorial 6 Creating a Web Form
WAHEP Website Check-up A Look at the Project Midway Website Evaluations.
NSU Web Services Website Guidelines & Creating Accessible Website Content.
Images, Tables, lists, blocks, layout, forms, iframes
JavaScript Forms Form Validation Cookies. What JavaScript can do  Control document appearance and content  Control the browser  Interact with user.
SE-2840 Dr. Mark L. Hornick 1 HTML input elements and forms.
Introduction to Web Accessibility. What is Web Accessibility Web accessibility means that people with disabilities can use the Web Disabilities including.
Tutorial 6 Working with Web Forms
Computing Concepts Advanced HTML: Tables and Forms.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
IV. “Regular” Web Pages: HTML A Web Accessibility Primer: Usability for Everyone Office of Web Communications.
Svetlin Nakov Telerik Corporation
Doncho Minkov Technical Trainer Telerik School Academy.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
WEBINAR SERIES: ACCESSIBLE INTERACTIVE DOCUMENTS Week 3: Accessible Web Forms Norman Coombs
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
HTML. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language.
INTRODUCTION TO DREAMWEAVER 8. What we already know…  Design basics  Contrast  Repetition  Alignment  Repetition  HTML.
Svetlin Nakov Telerik Corporation
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
Workshop 2 Coding an Accessible Website Web Content Accessibility Project Funded by BCcampus Natasha Boskic, Kirsten Bole, Nathan Hapke University of British.
Nov 4, 2002K. Smale - Section 5081 Section 508 What it means for you, the HEASARC and LHEA web developer.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
Website Development with Dreamweaver
Design and Construction of Accessible Web Sites Michael Burks Chairman Internet Society SIG For Internet Accessibility for People with Disabilities June.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 6: Links.
Everything in it’s right place Revisiting website accessibility Jeff Coburn Senior Web Specialist Institute for Community Inclusion.
How People with Disabilities Access the Web Web Design – Sec 2-5 Part or all of this lesson was adapted from the University of Washington’s “Web Design.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
WEB ACCESSIBILITY. WHAT IS IT? Web accessibility means that people with disabilities can use the Web. Web accessibility encompasses all disabilities that.
HTML Forms.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
IT Accessibility Committee Accessible Forms Prepared by the NYS Forum IT Accessibility Committee
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
Forms Collecting Data CSS Class 5. Forms Create a form Add text box Add labels Add check boxes and radio buttons Build a drop-down list Group drop-down.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
USABLEANDACCESSIBLEFORMS. accessibility or Accessibility?
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Developed with material from W3C Web Accessibility Initiative (WAI) IMPORTANT: Instructions Please read carefully the Instructions for.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
Tutorial 6 Creating Reusable Assets and Forms. Objectives Session 6.1 – Explore the head content of a page – Add keywords to a page – Add a meta description.
 Accessibility & Information Architecture Presented by Liz Molleur INF385E April 5 th, 2009.
Accessibility is not boring or difficult. It’s the right thing to do. Benjy Stanton.
Creating and Processing Web Forms
Advanced HTML Tags:.
Making the Web Accessible to Impaired Users
Objectives Design a form Create a form Create text fields
(and available form fields)
Creating Accessible Web Forms
Introduction to Web Accessibility
Web Content Accessibility Beata M. Ofianewska (DG COMM) 7 December 2006 December 2006 COMM C2.
Course Web Technology Guus Schreiber
Accessibility Evaluation
Presentation transcript:

Creating Accessible Web Forms Sandy Clark Constella Group

Overview Identifying the Problems The 3 prong approach to creating web forms HTML Validation CSS Special Considerations.

The problem We tend to build forms as if we are laying them out on a sheet of paper. Visually appealing Lumped together Rely on color to visually separate Example

Our forms are not accessible Can’t navigate easily through a speech browser Color blind people have a hard time separating out required fields if they are rendered by color. People who can’t use a mouse are locked out when the form is not navigable by keyboard alone.

Who needs accessible forms? Lots of us!

ColorBlind Need to make sure items are not denoted solely by color Don’ts “Required fields are in Red” “Required fields have a blue *” Do’s Required fields will be denoted by a (req)

Functionally Disabled Keyboard Access The form must be usable with only a keyboard. Make sure the form’s tab order is reasonable.

Visually Impaired Visual Impairments Make sure page also works with screen magnifiers. Can users see the page larger or smaller? Sample

Deaf Unless you have audio cues in a form, there is nothing special Contact Phone numbers are an issue.

Blind Make sure the form is usable in screen readers

Steps to designing a web form Structural Markup first Validate and Test Make it look good

Rely on XHTML for structure. Separating content (form) from presentation helps accessibility. There are HTML tags specifically designed for accessibility. Groups related items together Associates captions and form inputs. Structural Markup

Visual and programmatic way of grouping related inputs together. Used in conjunction with the tag to caption the grouping. Fieldset Example

Captioning Form Fields Two ways to identify a form field The label tag The title attribute

Label Tag Preferred way to render text. Implicit label Surrounds the input or select tag. Enter User Name Not recommended. Explicit label Linked to an input or select tag via the tags id. Enter User Name The id attribute is case sensitive and cannot contain underscores, hyphens or spaces.

Labels (cont) Do not use a graphic image in a label tag block. A screen reader will not read the alt text as the label. Labels are useful in visual browsers. Focus goes on the field when the label is clicked. Gives a larger hit area to a form field. Helps users with fine motor control difficulties. Visual Label Placement Text boxes and textareas : Labels should precede the input Checkboxes and Radio buttons Labels should come after the input Sample

Titles Most html tags offer the “title” attribute. Some visual browsers take titles as a popup. Not all screen readers read titles. Some screen readers will use titles if a label is not available. Better to use labels and hide them for a visual browser using CSS. Sample

Grids and Accessibility When creating a grid of input boxes, how do we make them accessible and still easy to use for our regular users? Titles - SampleSample Don’t require extra coding Not readable in all screen readers Labels - SampleSample Requires styling to hide them. Readable in all screen readers

Keyboard Access Keyboard access is important for Blind users Functionally disabled users. Make sure everything on your form can be used through the keyboard.

Access Keys The WAI recommends using an access key attribute for important links. This works for most people with functional disabilities but not blind people. Sample

Access Keys Problems Many screen readers rely on use of alt key combinations for their users. Unfortunately an access key will take precedence over the operating system or browser/screen reader software. There are keys to avoid because of Brower/Operating Systems Keys available for use, include C,I,J,K,L,O,P,R,S,X,Y,Z,0-9,’,-,=,(,),[,],\,/ Many of these keys will conflict with screen readers. At this time, its probably best to avoid access keys since they will create more confusion.

TabIndex Sets up a form for keyboard use by providing an order for tabbing through a form. Add a tabindex to Search boxes Long Forms where visitors will fill out most or all fields Set a tab index to the first item where an action is possible. Set a tab index to the submit button. Test your form by tabbing through it and make sure the ordering is correct. Add tabindex where necessary.

Text Input and TextArea Not much is needed to make these accessible. Place labels prior to the input or text area tag.

Prewritten Text If you have prewritten text in a field, you must provide some way to delete the text when using the field. WAI 10.4 (Priority 3) states that you should use default, place-holding characters in edit boxes and text areas. Most modern screen readers handle this correctly and you don’t need to do it. (even though some validation programs mark it as a problem).

Select Use optgroup for when using many options The optgroup tag groups options in a select box. It requires a label attribute, the value of which is displayed as a non-selectable pseudo-heading preceding that group in the drop-down list of visual browsers. Sample

Checkboxes and Radio Buttons Consider making checkboxes bigger using styles. Group radio buttons or related checkboxes in a tag, and provide a for each checkbox or radio button.

Buttons Submit Buttons Submit Button’s value attribute is easily read by screen readers/speech browsers. Make sure the value of the button indicates your intention. “Save” instead of “Go” “Submit” “Save and Continue”

Buttons Reset Buttons Don’t use Reset. Most people will hit it accidently and clear out their form. If you must have it, don’t use any keyboard control including taboindex or accesskey. Might want to consider giving a tabindex to the items directly before and after the reset so that a tab will skip the reset button.

Buttons Image Buttons Image Buttons will read the alt=“” attribute. Make sure the alt=“” attribute describes what you want to do rather than what the image is. The tag will act as a container Sample

Validate your page 1. Validate with an HTML validator 2. Use accessibility validation tools such as Bobby 3. Try using a keyboard through the form. 4. Turn off Javascript and make sure page still functions. 5. Try it with assistive technology.

CSS for Styling Now that our form is functional we can concentrate on making it look nice. Line up fields and captions without using tables Hide labels when necessary Style Fieldsets Make links and buttons look similar.

CSS for Styling CSS makes it easy to change the look. Add extra structural markup to support presentation. (classes,, and ) Sample

Special Considerations Phone Numbers Error Checking Javascript Tables

Consider Phone Numbers If a user is deaf, then their phone number might not be voice, it might by TTY. A TTY is a special device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type messages back and forth to one another instead of talking and listening. A TTY is required at both ends of the conversation in order to communicate. Besides a phone number consider type Voice Fax TTY

Error Checking Provide error checking that doesn’t just alert the user to a mistake, but tries to correct it. Offer alternatives based on spelling errors (helpful for dyslexics) Consider Google’s search engine which provides a new search based on correct spelling

Error Alerts Must use redundant methods While you can use client side validation and alerts, you must always use server side. Don’t use color only to alert errors. IE, fields marked with red asterisks to denote an error.

Javascript Your page must be able to function correctly without Javascript. Data Validation can be done client side and must also be done server side. Any Javascript which changes the page will not work in a screen reader.

Javascript (cont) Avoid items like pull down menus which trigger when you make a selection. Provide a valid HTML button next to this which will trigger the event server side when changed. If you wish, enclose it in a block so only browsers which don’t render Javascript see it. Always provide a submit button. Don’t rely on Javascript to submit your page.

Javascript and Keyboard Avoid only using onClick() events. Keyboard only users won’t trigger this. Use onfocus() as well.

Tables and Forms Don’t use tables to layout forms. If you must put a form in a table, make sure that a form is completely contained in one cell.

QA

For Further Knowledge University of Minnesota Web Design References (accessibility) webdesign/accessibility.html webdesign/accessibility.html Building Accessible Web Sites – Joe Clark er12.html er12.html