SlideShare a Scribd company logo
1 of 12
Creating Accessible Forms
Srinivasu Chakravarthula
Agenda
● About Deque & Me
● Setting the context - Forms
● Remembering Basics
○ Associated labels
○ Group level form controls
○ Labels and instructions
● Making dynamic / complex forms accessible
● Error prevention and handling
● WCAG 2.0 Success Criteria related to forms
● Resources
● Q & A + Thank you
© 2015 - All Rights Reserved 1
● Global leader in the area of Accessibility
● Digital Accessibility is both our mission
and vision
● 15+ years serving Government, Corporate
and other organizations
2
● Accessibility SME
● A decade of experience
● Formerly worked at BarrierBreak,
Yahoo, PayPal and HCL
● Accessibility is not just day job but
close to heart
● Loves networking, swimming, chess
and carrom
● Lives with wife and cute little VarshiAbout Deque and Me
Setting the Context - Forms
● Forms play a key role through life of a person - School
admission through to avail retiring benefits
● Online forms enable people with disabilities to be less
dependant
● Safe and secure way of storing data
● Easy to retrieve
3
Basics - Associated labels
<label for="firstname">First name:</label>
<input type="text" name="firstname" id="firstname" />
<input type="checkbox" id="markuplang" name="computerskills" checked="checked">
<label for="markuplang">HTML</label>
Technique H44: Using Label Elements to associate text labels with form controls
Technique G131: Providing Descriptive Labels
4
Basics: Group Level Form elements
<fieldset>
<legend>The play <cite>Hamlet</cite> was written by:</legend>
<input type="radio" id="shakesp" name="hamlet" checked="checked" value="a">
<label for="shakesp">William Shakespeare</label><br />
<input type="radio" id="kipling" name="hamlet" value="b">
<label for="kipling">Rudyard Kipling</label><br />
<input type="radio" id="gbshaw" name="hamlet" value="c">
<label for="gbshaw">George Bernard Shaw</label><br />
<input type="radio" id="hem" name="hamlet" value="d">
<label for="hem">Ernest Hemingway</label><br />
<input type="radio" id="dickens" name="hamlet" value="e">
<label for="dickens">Charles Dickens</label>
</fieldset>
Technique H71: Providing description for group of form controls using <fieldset> and <legand>
5
Basics: Labels and Instructions
● It’s recommended to provide visible labels; Placeholder is NOT a label and causes
inconvenience to several users including those with cognitive disabilities
● Identify required fields
● Provide instructions, if input fields accepts data in only a specific format
Understanding SC 3.3.2 - Labels and Instructions
6
Dynamic and Complex Forms
● Creating Accessible Date Picker
● Example of a Shopping Cart
● Creating Accessible Character Counter
7
Error handling and prevention
● Identifying errors in a form submission
● Providing multiple cues
● Providing information to prevent user to
make mistakes during form submission;
Understanding SC 3.3.1 - Error identification
Understanding SC 3.3.6 - Error prevention
8
WCAG 2.0 Success Criteria related to forms
● 1.3.1 Info and Relationships: Information, Structure and relationships conveyed through
presentation can be programmatically determined or are available in text (Level A)
○ Associate labels either explicitly or implicitly
○ Ensure that group related form controls are marked up using <fieldset> and
<legend>
● 2.4.6 Headings and Labels: To describe topic / purpose (Level AA)
○ Provide descriptive labels
○ Provide visible labels
● 3.3.2 Labels or instructions: Labels or instructions are provided when content requires user
input (Level A)
○ Identifying required field
○ Error identification
○ Providing instructions
● 4.1.2 Name, Role and Value: For all user interface components (including but not limited
to: form elements, links and components generated by scripts), the name and role can be
programmatically determined; states, properties, and values that can be set by the user
can be programmatically set; and notification of changes to these items is available to user
agents, including assistive technologies. (Level A)
9
Resources
● Deque University
○ Code Examples and other resources
● Forms Concepts - Web Accessibility Tutorials from WAI, W3C
● Creating Accessible Forms - Advanced form labelling by WebAIM
● Form elements and accessibility - by Rakesh Paladugula
10
Q & A - Thank you!
Srinivasu Chakravarthula
Twitter: @CSrinivasu | http://deque.com
http://srinivasu.org | http://serveominclusion.com
11

More Related Content

Similar to Creating Accessible Forms

ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docxContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
aidaclewer
 
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docxContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
donnajames55
 
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docxContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
maxinesmith73660
 
CICONF 2012 - Don't Make Me Read Your Mind
CICONF 2012 - Don't Make Me Read Your MindCICONF 2012 - Don't Make Me Read Your Mind
CICONF 2012 - Don't Make Me Read Your Mind
ciconf
 

Similar to Creating Accessible Forms (20)

AccessU 2018 - Surviving Dev Frameworks: Lessons Learned with WordPress, Drup...
AccessU 2018 - Surviving Dev Frameworks: Lessons Learned with WordPress, Drup...AccessU 2018 - Surviving Dev Frameworks: Lessons Learned with WordPress, Drup...
AccessU 2018 - Surviving Dev Frameworks: Lessons Learned with WordPress, Drup...
 
An Accessibility Update: Changes to Section 508
An Accessibility Update: Changes to Section 508An Accessibility Update: Changes to Section 508
An Accessibility Update: Changes to Section 508
 
Four Principles of Accessibility UK Version
Four Principles of Accessibility UK Version Four Principles of Accessibility UK Version
Four Principles of Accessibility UK Version
 
Usability awareness brown bag
Usability awareness brown bagUsability awareness brown bag
Usability awareness brown bag
 
Structured Problem Solving
Structured Problem SolvingStructured Problem Solving
Structured Problem Solving
 
Punit summer traning report.pdf
Punit summer traning report.pdfPunit summer traning report.pdf
Punit summer traning report.pdf
 
Workflow Essentials for Web Development
Workflow Essentials for Web DevelopmentWorkflow Essentials for Web Development
Workflow Essentials for Web Development
 
Basic agile namrata-workshop
Basic agile namrata-workshopBasic agile namrata-workshop
Basic agile namrata-workshop
 
Barcelona Admin Group-Study Group-7sept2019
Barcelona Admin Group-Study Group-7sept2019Barcelona Admin Group-Study Group-7sept2019
Barcelona Admin Group-Study Group-7sept2019
 
inventory mangement project.pdf
inventory mangement project.pdfinventory mangement project.pdf
inventory mangement project.pdf
 
TechChat_Sharing and Inspiring
TechChat_Sharing and InspiringTechChat_Sharing and Inspiring
TechChat_Sharing and Inspiring
 
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docxContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
 
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docxContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
 
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docxContemporaryProject ManagementTimothy J. Kloppenborg  Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
 
Designing salesforce solutions for reuse - Josh Dennis
Designing salesforce solutions for reuse - Josh DennisDesigning salesforce solutions for reuse - Josh Dennis
Designing salesforce solutions for reuse - Josh Dennis
 
Accessible Design with HTML5 - HTML5DevConf.com May 21st San Francisco, 2012 ...
Accessible Design with HTML5 - HTML5DevConf.com May 21st San Francisco, 2012 ...Accessible Design with HTML5 - HTML5DevConf.com May 21st San Francisco, 2012 ...
Accessible Design with HTML5 - HTML5DevConf.com May 21st San Francisco, 2012 ...
 
Open Data, Visualization & Usability for Online News Delivery
Open Data,  Visualization &  Usability for  Online News DeliveryOpen Data,  Visualization &  Usability for  Online News Delivery
Open Data, Visualization & Usability for Online News Delivery
 
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStart
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStartBest Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStart
Best Practices for Embedded UA - WritersUA 2012, Scott DeLoach, ClickStart
 
CICONF 2012 - Don't Make Me Read Your Mind
CICONF 2012 - Don't Make Me Read Your MindCICONF 2012 - Don't Make Me Read Your Mind
CICONF 2012 - Don't Make Me Read Your Mind
 
Project management System-PPT.pdf
Project management System-PPT.pdfProject management System-PPT.pdf
Project management System-PPT.pdf
 

More from Srinivasu Chakravarthula

Accessibility update since beginning of 2016
Accessibility update since beginning of 2016Accessibility update since beginning of 2016
Accessibility update since beginning of 2016
Srinivasu Chakravarthula
 
Introduction to Web Accessibility and WCAG
Introduction to Web Accessibility and WCAGIntroduction to Web Accessibility and WCAG
Introduction to Web Accessibility and WCAG
Srinivasu Chakravarthula
 

More from Srinivasu Chakravarthula (12)

Accessibility - a game changer
Accessibility - a game changerAccessibility - a game changer
Accessibility - a game changer
 
Accessible payments
Accessible paymentsAccessible payments
Accessible payments
 
Understanding wcag 2.0
Understanding wcag 2.0Understanding wcag 2.0
Understanding wcag 2.0
 
Digital Accessibility - what can you do_
Digital Accessibility - what can you do_Digital Accessibility - what can you do_
Digital Accessibility - what can you do_
 
Impact-Of-Inclusive-Design-UXI2016
Impact-Of-Inclusive-Design-UXI2016Impact-Of-Inclusive-Design-UXI2016
Impact-Of-Inclusive-Design-UXI2016
 
Accessibility update since beginning of 2016
Accessibility update since beginning of 2016Accessibility update since beginning of 2016
Accessibility update since beginning of 2016
 
StartUpSaturday_Deque
StartUpSaturday_DequeStartUpSaturday_Deque
StartUpSaturday_Deque
 
Accessible Design
Accessible DesignAccessible Design
Accessible Design
 
Accessibility testing technology, human touch and value
Accessibility testing technology, human touch and value Accessibility testing technology, human touch and value
Accessibility testing technology, human touch and value
 
Need For Web Accessibility Final
Need For Web Accessibility FinalNeed For Web Accessibility Final
Need For Web Accessibility Final
 
Introduction to Web Accessibility and WCAG
Introduction to Web Accessibility and WCAGIntroduction to Web Accessibility and WCAG
Introduction to Web Accessibility and WCAG
 
Introduction to Web Accessibility and WCAG
Introduction to Web Accessibility and WCAGIntroduction to Web Accessibility and WCAG
Introduction to Web Accessibility and WCAG
 

Creating Accessible Forms

  • 2. Agenda ● About Deque & Me ● Setting the context - Forms ● Remembering Basics ○ Associated labels ○ Group level form controls ○ Labels and instructions ● Making dynamic / complex forms accessible ● Error prevention and handling ● WCAG 2.0 Success Criteria related to forms ● Resources ● Q & A + Thank you © 2015 - All Rights Reserved 1
  • 3. ● Global leader in the area of Accessibility ● Digital Accessibility is both our mission and vision ● 15+ years serving Government, Corporate and other organizations 2 ● Accessibility SME ● A decade of experience ● Formerly worked at BarrierBreak, Yahoo, PayPal and HCL ● Accessibility is not just day job but close to heart ● Loves networking, swimming, chess and carrom ● Lives with wife and cute little VarshiAbout Deque and Me
  • 4. Setting the Context - Forms ● Forms play a key role through life of a person - School admission through to avail retiring benefits ● Online forms enable people with disabilities to be less dependant ● Safe and secure way of storing data ● Easy to retrieve 3
  • 5. Basics - Associated labels <label for="firstname">First name:</label> <input type="text" name="firstname" id="firstname" /> <input type="checkbox" id="markuplang" name="computerskills" checked="checked"> <label for="markuplang">HTML</label> Technique H44: Using Label Elements to associate text labels with form controls Technique G131: Providing Descriptive Labels 4
  • 6. Basics: Group Level Form elements <fieldset> <legend>The play <cite>Hamlet</cite> was written by:</legend> <input type="radio" id="shakesp" name="hamlet" checked="checked" value="a"> <label for="shakesp">William Shakespeare</label><br /> <input type="radio" id="kipling" name="hamlet" value="b"> <label for="kipling">Rudyard Kipling</label><br /> <input type="radio" id="gbshaw" name="hamlet" value="c"> <label for="gbshaw">George Bernard Shaw</label><br /> <input type="radio" id="hem" name="hamlet" value="d"> <label for="hem">Ernest Hemingway</label><br /> <input type="radio" id="dickens" name="hamlet" value="e"> <label for="dickens">Charles Dickens</label> </fieldset> Technique H71: Providing description for group of form controls using <fieldset> and <legand> 5
  • 7. Basics: Labels and Instructions ● It’s recommended to provide visible labels; Placeholder is NOT a label and causes inconvenience to several users including those with cognitive disabilities ● Identify required fields ● Provide instructions, if input fields accepts data in only a specific format Understanding SC 3.3.2 - Labels and Instructions 6
  • 8. Dynamic and Complex Forms ● Creating Accessible Date Picker ● Example of a Shopping Cart ● Creating Accessible Character Counter 7
  • 9. Error handling and prevention ● Identifying errors in a form submission ● Providing multiple cues ● Providing information to prevent user to make mistakes during form submission; Understanding SC 3.3.1 - Error identification Understanding SC 3.3.6 - Error prevention 8
  • 10. WCAG 2.0 Success Criteria related to forms ● 1.3.1 Info and Relationships: Information, Structure and relationships conveyed through presentation can be programmatically determined or are available in text (Level A) ○ Associate labels either explicitly or implicitly ○ Ensure that group related form controls are marked up using <fieldset> and <legend> ● 2.4.6 Headings and Labels: To describe topic / purpose (Level AA) ○ Provide descriptive labels ○ Provide visible labels ● 3.3.2 Labels or instructions: Labels or instructions are provided when content requires user input (Level A) ○ Identifying required field ○ Error identification ○ Providing instructions ● 4.1.2 Name, Role and Value: For all user interface components (including but not limited to: form elements, links and components generated by scripts), the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to user agents, including assistive technologies. (Level A) 9
  • 11. Resources ● Deque University ○ Code Examples and other resources ● Forms Concepts - Web Accessibility Tutorials from WAI, W3C ● Creating Accessible Forms - Advanced form labelling by WebAIM ● Form elements and accessibility - by Rakesh Paladugula 10
  • 12. Q & A - Thank you! Srinivasu Chakravarthula Twitter: @CSrinivasu | http://deque.com http://srinivasu.org | http://serveominclusion.com 11