SlideShare a Scribd company logo
1 of 46
Web Accessibility
Muhammad Afif Alfiano H
Front end Developer
(Tim Army - BSI UII)
afifalfiano.my.id
afifalfiano
—Tim Berners-Lee, W3C Director and inventor of
the World Wide Web
“The power of the Web is in its universality.
Access by everyone regardless of disability is
an essential aspect.”
Web Accessibility
An accessible site is one whose content can be accessed regardless of any user's
impairments and whose functionality can also be operated by the most diverse
range of users possible.
Accessibility concerns can be split into four broad categories:
● Vision
● Motor/dexterity
● Auditory
● Cognitive
Keyboard Access
Fundamental
Keyboard Access Fundamental
Having a good keyboard navigation strategy for your application creates a better
experience for everyone.
Arrange elements in the DOM to be in
logical order
To check if your application's tab order is logical, try tabbing through your page.
Demo Arrange elements in the DOM to be
in logical order
Correctly set the visibility of offscreen
content
To prevent a particular interactive element from receiving focus:
● display: none
● visibility: hidden
To add the element back into the tab order:
● display: block
● visibility: visible
Use semantic
HTML
Semantic HTML
By using the correct semantic HTML elements you may be able to meet most or
all of your keyboard access needs. That means less time fiddling with tabindex.
The ones most developers use are:
● <a>
● <button>
● <input> (and its many types)
● <select>
● <textarea>
Use Button instead of Div
Button be considered accessible, a button should:
● Be focusable via the keyboard
● Support being disabled
● Support the ENTER or SPACE keys to perform an action
● Be announced properly by a screen reader
Demo Use Button instead of Div
Links versus buttons
Another common anti-pattern is to treat links as buttons by attaching JavaScript
behavior to them.
● If clicking on the element will perform an action on the page, use <button>.
● If clicking on the element will navigate the user to a new page then use <a>.
Control Focus
with Tab index
Control Focus with Tab Index
Standard HTML elements such as <button> or <input> have keyboard
accessibility built in for free. If you're building custom interactive components,
however, use the tabindex attribute to ensure that they're keyboard accessible.
Insert an element into the tab order
Insert an element into the natural tab order using tabindex="0". For example:
Remove an element from the tab order
Remove an element using tabindex="-1". For example:
Avoid tab index > 0
Any tabindex greater than 0 jumps the element to the front of the natural tab
order. If there are multiple elements with a tabindex greater than 0, the tab
order starts from the lowest value greater than zero and works its way up.
Styles Focus
Styles Focus
The focus indicator identifies the currently focused element on your page. For
users who are unable to use a mouse, this indicator is extremely important
Semantic and
screen readers
Semantic and screen readers
Have you ever stopped to wonder how assistive technology, such as a screen
reader, knows what to announce to users? The answer is that these technologies
rely on developers marking up their pages with semantic HTML.
Generally speaking, every HTML element will have some of the following
semantic properties:
● A role or type
● A name
● A value (optional)
● A state (optional)
Screen readers
Demo Screen readers
Heading and
landmark
Heading and landmark
Screen readers have commands to quickly jump between headings or to specific
landmark regions. In fact, a survey of screen reader users found that they most
often navigate an unfamiliar page by exploring the headings.
● Use headings to outline the page
● Don't skip heading levels
● Use landmarks to aid navigation
● Bypass repetitive content with skip links
Labels and text
alternatives
Labels and text alternatives
In order for a screen reader to present a spoken UI to the user, meaningful
elements must have proper labels or text alternatives.
Include text alternatives for images
An img should always be accompanied by an alt attribute to give the image its
accessible name. If the image fails to load, the alt text is used as a placeholder so
users have a sense of what the image was trying to convey.
Images as links and inputs
An image wrapped in a link should use the img's alt attribute to describe where
the user will navigate to if they click on the link:
Similarly, if an <input type="image"> element is used to create an image button,
it should contain alt text that describes the action that occurs when the user
clicks on the button:
Button
A button element always attempts to compute its accessible name using its text
content.
But, when working with icon buttons, it can be helpful to give them an explicit
accessible name using the aria-label attribute
Links
Similar to buttons, links primarily get their accessible name from their text
content. A nice trick when creating a link is to put the most meaningful piece of
text into the link itself, rather than filler words like "Here" or "Read More."
Label form elements
There are two ways to associate a label with a form element such as a checkbox.
● Place the input element inside of a label element
● Or use the label's for attribute and refer to the element's id
Color and contrast
accessibility
Color and contrast accessibility
The WebAIM guidelines recommend an AA (minimum) contrast ratio of 4.5:1 for
all text.
Accessibility Insight
CSS Overview
Use the CSS Overview
panel to better
understand your page’s
CSS and identify
potential
improvements.
Content
reordering
Content Reordering
The order of content in your document is important for the accessibility of your
site. A screen reader will read out content based on the document order, using
the HTML elements that you have selected to give meaning to that content.
Content Reordering
The following CSS properties commonly cause content reordering problems:
● Using position: absolute and taking an item out of flow visually.
● The order property in Flexbox and Grid layout.
● The row-reverse and column-reverse values for flex-direction in Flexbox.
● The dense value for grid-auto-flow in Grid Layout.
● Any positioning by line name or number, or with grid-template-areas in
Grid Layout.
Demo Content Reordering
Demo Content Reordering
References
https://www.w3.org/WAI/fundamentals/accessibility-intro/
https://web.dev/tabindex/
https://webaim.org/techniques/alttext/
https://web.dev/accessible/
https://www.w3.org/TR/2017/NOTE-wai-aria-practices-1.1-
20171214/examples/landmarks/HTML5.htmlhttps://www.w3.org/TR/2017/N
OTE-wai-aria-practices-1.1-20171214/examples/landmarks/HTML5.html
CREDITS: This presentation template was created by Slidesgo,
including icons by Flaticon, and infographics & images by Freepik
Do you have any questions?
afifalfiano2@gmail.com
Please keep this slide for attribution
THANKS!
Web accessibility

More Related Content

What's hot

Accessibility Testing 101
Accessibility Testing 101Accessibility Testing 101
Accessibility Testing 101Patrick Dunphy
 
Web Accessibility for Web Developers
Web Accessibility for Web DevelopersWeb Accessibility for Web Developers
Web Accessibility for Web DevelopersAlexander Loechel
 
What Is Accessibility Testing?
What Is Accessibility Testing?What Is Accessibility Testing?
What Is Accessibility Testing?QA InfoTech
 
Accessibility testing kailash 26_nov_ 2010
Accessibility testing kailash 26_nov_ 2010Accessibility testing kailash 26_nov_ 2010
Accessibility testing kailash 26_nov_ 2010Kailash More
 
Web accessibility 101: The why, who, what, and how of "a11y"
Web accessibility 101: The why, who, what, and how of "a11y"Web accessibility 101: The why, who, what, and how of "a11y"
Web accessibility 101: The why, who, what, and how of "a11y"ecentricarts
 
Web accessibility: it’s everyone’s responsibility
Web accessibility: it’s everyone’s responsibilityWeb accessibility: it’s everyone’s responsibility
Web accessibility: it’s everyone’s responsibilityMedia Access Australia
 
Digital Accessibility - The Quick Wins
Digital Accessibility - The Quick WinsDigital Accessibility - The Quick Wins
Digital Accessibility - The Quick WinsMedia Access Australia
 
Accessibility Testing Approach
Accessibility Testing ApproachAccessibility Testing Approach
Accessibility Testing ApproachJatin Kochhar
 
Designing, Developing & Testing for Accessibility
Designing, Developing & Testing for AccessibilityDesigning, Developing & Testing for Accessibility
Designing, Developing & Testing for AccessibilityEric Malcolm
 
Advanced Software Engineering.ppt
Advanced Software Engineering.pptAdvanced Software Engineering.ppt
Advanced Software Engineering.pptRvishnupriya2
 
Web Content Accessibility Guidelines
Web Content Accessibility GuidelinesWeb Content Accessibility Guidelines
Web Content Accessibility GuidelinesPurnimaAgarwal6
 
A Web for Everyone: Accessibility as a design challenge
A Web for Everyone: Accessibility as a design challengeA Web for Everyone: Accessibility as a design challenge
A Web for Everyone: Accessibility as a design challengeWhitney Quesenbery
 
What is accessibility?
What is accessibility?What is accessibility?
What is accessibility?Russ Weakley
 
How to Create an Accessible PDF
How to Create an Accessible PDFHow to Create an Accessible PDF
How to Create an Accessible PDF3Play Media
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in androidPrawesh Shrestha
 
Practical tools for Web Accessibility testing
Practical tools for Web Accessibility testingPractical tools for Web Accessibility testing
Practical tools for Web Accessibility testingToufic Sbeiti
 
Understanding Web Accessibility
Understanding Web AccessibilityUnderstanding Web Accessibility
Understanding Web AccessibilityAndrea Dubravsky
 

What's hot (20)

Accessibility Testing 101
Accessibility Testing 101Accessibility Testing 101
Accessibility Testing 101
 
Web Accessibility for Web Developers
Web Accessibility for Web DevelopersWeb Accessibility for Web Developers
Web Accessibility for Web Developers
 
What Is Accessibility Testing?
What Is Accessibility Testing?What Is Accessibility Testing?
What Is Accessibility Testing?
 
Accessibility testing kailash 26_nov_ 2010
Accessibility testing kailash 26_nov_ 2010Accessibility testing kailash 26_nov_ 2010
Accessibility testing kailash 26_nov_ 2010
 
Figma.pptx
Figma.pptxFigma.pptx
Figma.pptx
 
Web accessibility 101: The why, who, what, and how of "a11y"
Web accessibility 101: The why, who, what, and how of "a11y"Web accessibility 101: The why, who, what, and how of "a11y"
Web accessibility 101: The why, who, what, and how of "a11y"
 
Web accessibility: it’s everyone’s responsibility
Web accessibility: it’s everyone’s responsibilityWeb accessibility: it’s everyone’s responsibility
Web accessibility: it’s everyone’s responsibility
 
Web Accessibility
Web AccessibilityWeb Accessibility
Web Accessibility
 
Digital Accessibility - The Quick Wins
Digital Accessibility - The Quick WinsDigital Accessibility - The Quick Wins
Digital Accessibility - The Quick Wins
 
Accessibility Testing Approach
Accessibility Testing ApproachAccessibility Testing Approach
Accessibility Testing Approach
 
Designing, Developing & Testing for Accessibility
Designing, Developing & Testing for AccessibilityDesigning, Developing & Testing for Accessibility
Designing, Developing & Testing for Accessibility
 
Advanced Software Engineering.ppt
Advanced Software Engineering.pptAdvanced Software Engineering.ppt
Advanced Software Engineering.ppt
 
Web Content Accessibility Guidelines
Web Content Accessibility GuidelinesWeb Content Accessibility Guidelines
Web Content Accessibility Guidelines
 
A Web for Everyone: Accessibility as a design challenge
A Web for Everyone: Accessibility as a design challengeA Web for Everyone: Accessibility as a design challenge
A Web for Everyone: Accessibility as a design challenge
 
What is accessibility?
What is accessibility?What is accessibility?
What is accessibility?
 
How to Create an Accessible PDF
How to Create an Accessible PDFHow to Create an Accessible PDF
How to Create an Accessible PDF
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in android
 
WCAG
WCAGWCAG
WCAG
 
Practical tools for Web Accessibility testing
Practical tools for Web Accessibility testingPractical tools for Web Accessibility testing
Practical tools for Web Accessibility testing
 
Understanding Web Accessibility
Understanding Web AccessibilityUnderstanding Web Accessibility
Understanding Web Accessibility
 

Similar to Web accessibility

Top 10 tips for maximising accessibility - breakfast briefing March 2016
Top 10 tips for maximising accessibility - breakfast briefing March 2016Top 10 tips for maximising accessibility - breakfast briefing March 2016
Top 10 tips for maximising accessibility - breakfast briefing March 2016User Vision
 
Content accessibility guidelines for site management02
Content accessibility guidelines for site management02Content accessibility guidelines for site management02
Content accessibility guidelines for site management02Matthew Schaefer
 
FYBSC IT Web Programming Unit II Html Page Layout & Navigation
FYBSC IT Web Programming Unit II Html Page Layout & NavigationFYBSC IT Web Programming Unit II Html Page Layout & Navigation
FYBSC IT Web Programming Unit II Html Page Layout & NavigationArti Parab Academics
 
Website usability ideas for business growth
Website usability ideas for business growthWebsite usability ideas for business growth
Website usability ideas for business growthJames Smith
 
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiBuiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
ًWebsite_development and design
ًWebsite_development and designًWebsite_development and design
ًWebsite_development and designMaged Elsakka
 
Usability and accessibility on the web
Usability and accessibility on the webUsability and accessibility on the web
Usability and accessibility on the webVlad Posea
 
Lesson 3 Introduction to Human Computer Interaction.pptx
Lesson 3 Introduction to Human Computer Interaction.pptxLesson 3 Introduction to Human Computer Interaction.pptx
Lesson 3 Introduction to Human Computer Interaction.pptxEllenGracePorras
 
Diy accessibility
Diy accessibilityDiy accessibility
Diy accessibilityCaleb Tang
 
Wire framing is an important step in any screen design process. It i.pdf
Wire framing is an important step in any screen design process. It i.pdfWire framing is an important step in any screen design process. It i.pdf
Wire framing is an important step in any screen design process. It i.pdfpoddaranand1
 
Accessibility 101
Accessibility 101Accessibility 101
Accessibility 101LindaHurd
 
HTML5- Create divisions in a web page
HTML5- Create divisions in a web pageHTML5- Create divisions in a web page
HTML5- Create divisions in a web pageGrayzon Gonzales, LPT
 

Similar to Web accessibility (20)

Top 10 tips for maximising accessibility - breakfast briefing March 2016
Top 10 tips for maximising accessibility - breakfast briefing March 2016Top 10 tips for maximising accessibility - breakfast briefing March 2016
Top 10 tips for maximising accessibility - breakfast briefing March 2016
 
Content accessibility guidelines for site management02
Content accessibility guidelines for site management02Content accessibility guidelines for site management02
Content accessibility guidelines for site management02
 
Lit 20170306
Lit 20170306Lit 20170306
Lit 20170306
 
FYBSC IT Web Programming Unit II Html Page Layout & Navigation
FYBSC IT Web Programming Unit II Html Page Layout & NavigationFYBSC IT Web Programming Unit II Html Page Layout & Navigation
FYBSC IT Web Programming Unit II Html Page Layout & Navigation
 
WebBestPractices3
WebBestPractices3WebBestPractices3
WebBestPractices3
 
Ui 5
Ui   5Ui   5
Ui 5
 
Website usability ideas for business growth
Website usability ideas for business growthWebsite usability ideas for business growth
Website usability ideas for business growth
 
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiBuiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
 
ًWebsite_development and design
ًWebsite_development and designًWebsite_development and design
ًWebsite_development and design
 
Usability and accessibility on the web
Usability and accessibility on the webUsability and accessibility on the web
Usability and accessibility on the web
 
leggi
leggileggi
leggi
 
Accessibility Part 3
Accessibility Part 3Accessibility Part 3
Accessibility Part 3
 
Web Usability
Web UsabilityWeb Usability
Web Usability
 
Lesson 3 Introduction to Human Computer Interaction.pptx
Lesson 3 Introduction to Human Computer Interaction.pptxLesson 3 Introduction to Human Computer Interaction.pptx
Lesson 3 Introduction to Human Computer Interaction.pptx
 
Diy accessibility
Diy accessibilityDiy accessibility
Diy accessibility
 
Wire framing is an important step in any screen design process. It i.pdf
Wire framing is an important step in any screen design process. It i.pdfWire framing is an important step in any screen design process. It i.pdf
Wire framing is an important step in any screen design process. It i.pdf
 
Web Campaign 2.pptx
Web Campaign 2.pptxWeb Campaign 2.pptx
Web Campaign 2.pptx
 
Accessibility 101
Accessibility 101Accessibility 101
Accessibility 101
 
Sahejpreet SEO basics
Sahejpreet SEO basicsSahejpreet SEO basics
Sahejpreet SEO basics
 
HTML5- Create divisions in a web page
HTML5- Create divisions in a web pageHTML5- Create divisions in a web page
HTML5- Create divisions in a web page
 

Recently uploaded

The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 

Recently uploaded (20)

The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 

Web accessibility

  • 2. Muhammad Afif Alfiano H Front end Developer (Tim Army - BSI UII) afifalfiano.my.id afifalfiano
  • 3. —Tim Berners-Lee, W3C Director and inventor of the World Wide Web “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
  • 4. Web Accessibility An accessible site is one whose content can be accessed regardless of any user's impairments and whose functionality can also be operated by the most diverse range of users possible. Accessibility concerns can be split into four broad categories: ● Vision ● Motor/dexterity ● Auditory ● Cognitive
  • 6. Keyboard Access Fundamental Having a good keyboard navigation strategy for your application creates a better experience for everyone.
  • 7. Arrange elements in the DOM to be in logical order To check if your application's tab order is logical, try tabbing through your page.
  • 8. Demo Arrange elements in the DOM to be in logical order
  • 9. Correctly set the visibility of offscreen content To prevent a particular interactive element from receiving focus: ● display: none ● visibility: hidden To add the element back into the tab order: ● display: block ● visibility: visible
  • 11. Semantic HTML By using the correct semantic HTML elements you may be able to meet most or all of your keyboard access needs. That means less time fiddling with tabindex. The ones most developers use are: ● <a> ● <button> ● <input> (and its many types) ● <select> ● <textarea>
  • 12. Use Button instead of Div Button be considered accessible, a button should: ● Be focusable via the keyboard ● Support being disabled ● Support the ENTER or SPACE keys to perform an action ● Be announced properly by a screen reader
  • 13. Demo Use Button instead of Div
  • 14. Links versus buttons Another common anti-pattern is to treat links as buttons by attaching JavaScript behavior to them. ● If clicking on the element will perform an action on the page, use <button>. ● If clicking on the element will navigate the user to a new page then use <a>.
  • 16. Control Focus with Tab Index Standard HTML elements such as <button> or <input> have keyboard accessibility built in for free. If you're building custom interactive components, however, use the tabindex attribute to ensure that they're keyboard accessible.
  • 17. Insert an element into the tab order Insert an element into the natural tab order using tabindex="0". For example:
  • 18. Remove an element from the tab order Remove an element using tabindex="-1". For example:
  • 19. Avoid tab index > 0 Any tabindex greater than 0 jumps the element to the front of the natural tab order. If there are multiple elements with a tabindex greater than 0, the tab order starts from the lowest value greater than zero and works its way up.
  • 21. Styles Focus The focus indicator identifies the currently focused element on your page. For users who are unable to use a mouse, this indicator is extremely important
  • 23. Semantic and screen readers Have you ever stopped to wonder how assistive technology, such as a screen reader, knows what to announce to users? The answer is that these technologies rely on developers marking up their pages with semantic HTML. Generally speaking, every HTML element will have some of the following semantic properties: ● A role or type ● A name ● A value (optional) ● A state (optional)
  • 27. Heading and landmark Screen readers have commands to quickly jump between headings or to specific landmark regions. In fact, a survey of screen reader users found that they most often navigate an unfamiliar page by exploring the headings. ● Use headings to outline the page ● Don't skip heading levels ● Use landmarks to aid navigation ● Bypass repetitive content with skip links
  • 29. Labels and text alternatives In order for a screen reader to present a spoken UI to the user, meaningful elements must have proper labels or text alternatives.
  • 30. Include text alternatives for images An img should always be accompanied by an alt attribute to give the image its accessible name. If the image fails to load, the alt text is used as a placeholder so users have a sense of what the image was trying to convey.
  • 31. Images as links and inputs An image wrapped in a link should use the img's alt attribute to describe where the user will navigate to if they click on the link: Similarly, if an <input type="image"> element is used to create an image button, it should contain alt text that describes the action that occurs when the user clicks on the button:
  • 32. Button A button element always attempts to compute its accessible name using its text content. But, when working with icon buttons, it can be helpful to give them an explicit accessible name using the aria-label attribute
  • 33. Links Similar to buttons, links primarily get their accessible name from their text content. A nice trick when creating a link is to put the most meaningful piece of text into the link itself, rather than filler words like "Here" or "Read More."
  • 34. Label form elements There are two ways to associate a label with a form element such as a checkbox. ● Place the input element inside of a label element ● Or use the label's for attribute and refer to the element's id
  • 36. Color and contrast accessibility The WebAIM guidelines recommend an AA (minimum) contrast ratio of 4.5:1 for all text.
  • 38. CSS Overview Use the CSS Overview panel to better understand your page’s CSS and identify potential improvements.
  • 40. Content Reordering The order of content in your document is important for the accessibility of your site. A screen reader will read out content based on the document order, using the HTML elements that you have selected to give meaning to that content.
  • 41. Content Reordering The following CSS properties commonly cause content reordering problems: ● Using position: absolute and taking an item out of flow visually. ● The order property in Flexbox and Grid layout. ● The row-reverse and column-reverse values for flex-direction in Flexbox. ● The dense value for grid-auto-flow in Grid Layout. ● Any positioning by line name or number, or with grid-template-areas in Grid Layout.
  • 45. CREDITS: This presentation template was created by Slidesgo, including icons by Flaticon, and infographics & images by Freepik Do you have any questions? afifalfiano2@gmail.com Please keep this slide for attribution THANKS!