SlideShare a Scribd company logo
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

PPTX
Enterprise Level Tools and solutions for Accessibility - WorldSpace, Amaze an...
PDF
The power of accessibility (November, 2018)
PPTX
Backend accessible
DOCX
Debesh_Samanta_cv
PPTX
FrontendwebsitehtmljavacssInternship.pptx
PPTX
Surviving Dev Frameworks 2019
PDF
How browser accessibility can enhance safe driving (AGL Summit Nov 2020)
PDF
poster final 2
Enterprise Level Tools and solutions for Accessibility - WorldSpace, Amaze an...
The power of accessibility (November, 2018)
Backend accessible
Debesh_Samanta_cv
FrontendwebsitehtmljavacssInternship.pptx
Surviving Dev Frameworks 2019
How browser accessibility can enhance safe driving (AGL Summit Nov 2020)
poster final 2

Similar to Creating Accessible Forms (20)

PPTX
Essential html tweaks for accessible themes
PPTX
AccessU 2018 - Surviving Dev Frameworks: Lessons Learned with WordPress, Drup...
PPTX
An Accessibility Update: Changes to Section 508
PPTX
Bootstrap5_Full_Presentation_45_Slides.pptx
PDF
Four Principles of Accessibility UK Version
PPT
Usability awareness brown bag
PPT
Structured Problem Solving
PDF
Punit summer traning report.pdf
PPTX
Workflow Essentials for Web Development
PPTX
Basic agile namrata-workshop
PPTX
Barcelona Admin Group-Study Group-7sept2019
PDF
inventory mangement project.pdf
PPTX
TechChat_Sharing and Inspiring
DOCX
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
DOCX
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
DOCX
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
PPTX
Designing salesforce solutions for reuse - Josh Dennis
PPTX
Tech Winter Break'24 Workshop A hands-o
PPSX
Accessible Design with HTML5 - HTML5DevConf.com May 21st San Francisco, 2012 ...
PDF
Open Data, Visualization & Usability for Online News Delivery
Essential html tweaks for accessible themes
AccessU 2018 - Surviving Dev Frameworks: Lessons Learned with WordPress, Drup...
An Accessibility Update: Changes to Section 508
Bootstrap5_Full_Presentation_45_Slides.pptx
Four Principles of Accessibility UK Version
Usability awareness brown bag
Structured Problem Solving
Punit summer traning report.pdf
Workflow Essentials for Web Development
Basic agile namrata-workshop
Barcelona Admin Group-Study Group-7sept2019
inventory mangement project.pdf
TechChat_Sharing and Inspiring
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
ContemporaryProject ManagementTimothy J. Kloppenborg Th i.docx
Designing salesforce solutions for reuse - Josh Dennis
Tech Winter Break'24 Workshop A hands-o
Accessible Design with HTML5 - HTML5DevConf.com May 21st San Francisco, 2012 ...
Open Data, Visualization & Usability for Online News Delivery
Ad

More from Srinivasu Chakravarthula (12)

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

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