SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Presentation on html, css
Presentation on html, cssPresentation on html, css
Presentation on html, cssAamir Sohail
 
BEM It! for Brandwatch
BEM It! for BrandwatchBEM It! for Brandwatch
BEM It! for BrandwatchMax Shirshin
 
UDA-Componentes RUP. Botonera
UDA-Componentes RUP. BotoneraUDA-Componentes RUP. Botonera
UDA-Componentes RUP. BotoneraAnder Martinez
 
UDA-Componentes RUP. Reporting
UDA-Componentes RUP. ReportingUDA-Componentes RUP. Reporting
UDA-Componentes RUP. ReportingAnder Martinez
 
Understanding Flexbox Layout in React Native.pdf
Understanding Flexbox Layout in React Native.pdfUnderstanding Flexbox Layout in React Native.pdf
Understanding Flexbox Layout in React Native.pdfKaty Slemon
 
CSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and moreCSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and moreRuss Weakley
 
UDA-Anexo gestión de seguridad
UDA-Anexo gestión de seguridadUDA-Anexo gestión de seguridad
UDA-Anexo gestión de seguridadAnder Martinez
 
UDA-Componentes RUP. Autocomplete
UDA-Componentes RUP. AutocompleteUDA-Componentes RUP. Autocomplete
UDA-Componentes RUP. AutocompleteAnder Martinez
 
SPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager SitesSPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager SitesGabriel Walt
 
UDA-Componentes RUP. Combo
UDA-Componentes RUP. ComboUDA-Componentes RUP. Combo
UDA-Componentes RUP. ComboAnder Martinez
 
Javascript Module Patterns
Javascript Module PatternsJavascript Module Patterns
Javascript Module PatternsNicholas Jansma
 
JavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptJavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptLaurence Svekis ✔
 
Adobe Experience Manager Core Components
Adobe Experience Manager Core ComponentsAdobe Experience Manager Core Components
Adobe Experience Manager Core ComponentsGabriel Walt
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basicsEliran Eliassy
 
Angular Dependency Injection
Angular Dependency InjectionAngular Dependency Injection
Angular Dependency InjectionNir Kaufman
 
UDA-Componentes RUP. Tabla Avanzada
UDA-Componentes RUP. Tabla AvanzadaUDA-Componentes RUP. Tabla Avanzada
UDA-Componentes RUP. Tabla AvanzadaAnder Martinez
 
Build web apps with react js
Build web apps with react jsBuild web apps with react js
Build web apps with react jsdhanushkacnd
 
UDA-Componentes RUP. Fecha (v2.1.0 deprecado)
UDA-Componentes RUP. Fecha  (v2.1.0 deprecado)UDA-Componentes RUP. Fecha  (v2.1.0 deprecado)
UDA-Componentes RUP. Fecha (v2.1.0 deprecado)Ander Martinez
 

Mais procurados (20)

Presentation on html, css
Presentation on html, cssPresentation on html, css
Presentation on html, css
 
BEM It! for Brandwatch
BEM It! for BrandwatchBEM It! for Brandwatch
BEM It! for Brandwatch
 
UDA-Componentes RUP. Botonera
UDA-Componentes RUP. BotoneraUDA-Componentes RUP. Botonera
UDA-Componentes RUP. Botonera
 
UDA-Componentes RUP. Reporting
UDA-Componentes RUP. ReportingUDA-Componentes RUP. Reporting
UDA-Componentes RUP. Reporting
 
Understanding Flexbox Layout in React Native.pdf
Understanding Flexbox Layout in React Native.pdfUnderstanding Flexbox Layout in React Native.pdf
Understanding Flexbox Layout in React Native.pdf
 
CSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and moreCSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and more
 
HTML5 Web storage
HTML5 Web storageHTML5 Web storage
HTML5 Web storage
 
BEM - CSS, Seriously
BEM - CSS, SeriouslyBEM - CSS, Seriously
BEM - CSS, Seriously
 
UDA-Anexo gestión de seguridad
UDA-Anexo gestión de seguridadUDA-Anexo gestión de seguridad
UDA-Anexo gestión de seguridad
 
UDA-Componentes RUP. Autocomplete
UDA-Componentes RUP. AutocompleteUDA-Componentes RUP. Autocomplete
UDA-Componentes RUP. Autocomplete
 
SPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager SitesSPA Editor - Adobe Experience Manager Sites
SPA Editor - Adobe Experience Manager Sites
 
UDA-Componentes RUP. Combo
UDA-Componentes RUP. ComboUDA-Componentes RUP. Combo
UDA-Componentes RUP. Combo
 
Javascript Module Patterns
Javascript Module PatternsJavascript Module Patterns
Javascript Module Patterns
 
JavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptJavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScript
 
Adobe Experience Manager Core Components
Adobe Experience Manager Core ComponentsAdobe Experience Manager Core Components
Adobe Experience Manager Core Components
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Angular Dependency Injection
Angular Dependency InjectionAngular Dependency Injection
Angular Dependency Injection
 
UDA-Componentes RUP. Tabla Avanzada
UDA-Componentes RUP. Tabla AvanzadaUDA-Componentes RUP. Tabla Avanzada
UDA-Componentes RUP. Tabla Avanzada
 
Build web apps with react js
Build web apps with react jsBuild web apps with react js
Build web apps with react js
 
UDA-Componentes RUP. Fecha (v2.1.0 deprecado)
UDA-Componentes RUP. Fecha  (v2.1.0 deprecado)UDA-Componentes RUP. Fecha  (v2.1.0 deprecado)
UDA-Componentes RUP. Fecha (v2.1.0 deprecado)
 

Semelhante a 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
 

Semelhante a 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
 

Último

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
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
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 

Último (20)

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
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
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 

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!