SlideShare a Scribd company logo
19.02.2019
CSSibility…

we should

care
Marouen Mhiri - Karlsruhe CSS-Meetup
19.02.2019
Marouen Mhiri
Web developer
CSS
withoutJS.com
19.02.2019
Agenda
• Accessibility (a11y)

• Why should we care?

• First steps as developers

• CSS-properties to consider

• Browsers do already care
19.02.2019
Accessibility
(A11y)
1
19.02.2019
Definition
„Web accessibility means that websites, tools, and technologies
are designed and developed so that people with disabilities can
use them.“
(https://www.w3.org/WAI/fundamentals/accessibility-intro/#what)
2
19.02.2019
Disabilities
3
Permanent Disability
Short-term (Temporary) Disability:
Conditional or Situation Disability:
Logic dependence Disability:
19.02.2019
Why should we care?
4
19.02.2019 5
equal access and equal opportunity
New business prospectives
Laws and policy requirements
19.02.2019
First steps as
developers
6
19.02.2019
• make the font-size bigger
• 12px used to be a standard

• make sizes between 15 and 18. Preferred: 18-20

• use the line-height
• standard: 1.2

• preferred: 1.5

• align your text but don’t justify it
• don’t justify because the spaces are irregular and the css hyphens-property
is not well supported 

• use the alt-Tag
• <img src =”image-location” alt=”this is where your image description goes”>

• think about fallbacks
• use @support and use it right

• (http://romeo.elsevier.com/accessibility_checklist/)
7
19.02.2019
CSS-properties to
consider
8
19.02.2019
display: contents
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
ul {
display: contents;
}
9
19.02.2019
flex-direction
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
ul {
display: flex;
flex-direction: column-reverse;
}
10
19.02.2019
flex/grid - order (1)
<ul>
<li class="item1">Item 1</li>
<li class="item2">Item 2</li>
<li class="item3">Item 3</li>
</ul>
ul {
display: flex;
flex-direction: column;
}
.item2 {
order: 1;
}
.item3 {
order: 2;
}
.item1 {
order: 3;
}
11
19.02.2019
flex/grid - order (2)
1
3
2 4
6
5
8
7
12
19.02.2019
content: "text"
<h2>Headline Text</h2>
h2::after {
content: “Subline Text“;
}
13
19.02.2019
content: "text"
@media print {
a[href^="http"]:not([href*="mywebsite.com"])::after {
content: " (" attr(href) ")";
}
}
14
19.02.2019
Browsers do already
care
15
19.02.2019
prefers-reduced-motion
.animation {
-webkit-animation: vibrate 0.3s linear infinite both;
animation: vibrate 0.3s linear infinite both;
}
<div class="animation">animated box</div>
@media (prefers-reduced-motion: reduce) {
.animation {
animation: none;
-webkit-animation: none;
}
}
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
16
19.02.2019
inverted-colors
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/inverted-colors
<p>If you're using inverted colors, this text should be blue
on white (the inverse of yellow on black). If you're not, it
should be red on light gray.</p>
@media (inverted-colors: inverted) {
p {
background: black;
color: yellow;
}
}
@media (inverted-colors: none) {
p {
background: #eee;
color: red;
}
}
p {
color: gray;
}
17
19.02.2019
Why should we care?
18
19.02.2019
because if we
(Developers) don’t,
nobody will.
19
19.02.2019
Thank you!!!

marouen-mhiri.com
@MarouenMhiri
„Leave NO ONE behind“
- Steven Champeon

More Related Content

Similar to CSSibility... we should care

What to include on the accessibility help page on your website
What to include on the accessibility help page on your websiteWhat to include on the accessibility help page on your website
What to include on the accessibility help page on your website
AbilityNet
 
Web Development Trends That Boom In 2024.pdf
Web Development Trends That Boom In 2024.pdfWeb Development Trends That Boom In 2024.pdf
Web Development Trends That Boom In 2024.pdf
SolviosTechnology
 
Web Mining
Web MiningWeb Mining
Web Mining
Kamal Acharya
 
Web Development
Web DevelopmentWeb Development
Web Development
WishaZehra1
 
Martin Paver
Martin PaverMartin Paver
Martin Paver
ProjectControlsExpo
 
Accessibility Anti Patterns with Dafydd Henke-Reed
Accessibility Anti Patterns with Dafydd Henke-ReedAccessibility Anti Patterns with Dafydd Henke-Reed
Accessibility Anti Patterns with Dafydd Henke-Reed
AbilityNet
 
How to create accessible websites - Web Accessibility Summit
How to create accessible websites - Web Accessibility SummitHow to create accessible websites - Web Accessibility Summit
How to create accessible websites - Web Accessibility Summit
Rachel Cherry
 
Developing a framework of design principles for single page websites and thei...
Developing a framework of design principles for single page websites and thei...Developing a framework of design principles for single page websites and thei...
Developing a framework of design principles for single page websites and thei...
World IA Day Copenhagen
 
Fundamentals of Web Design | Chandan Chakraborty
Fundamentals of Web Design | Chandan ChakrabortyFundamentals of Web Design | Chandan Chakraborty
Fundamentals of Web Design | Chandan Chakraborty
Chandan Chakraborty
 
Marketing Without Barriers: Considering Digital Accessibility for Customers a...
Marketing Without Barriers: Considering Digital Accessibility for Customers a...Marketing Without Barriers: Considering Digital Accessibility for Customers a...
Marketing Without Barriers: Considering Digital Accessibility for Customers a...
Whole Brain Group, LLC
 
Introduction to digital accessibility - AbilityNet training 23 April 2020
Introduction to digital accessibility - AbilityNet training 23 April 2020Introduction to digital accessibility - AbilityNet training 23 April 2020
Introduction to digital accessibility - AbilityNet training 23 April 2020
AbilityNet
 
Webdesign
WebdesignWebdesign
Webdesign
WebdesignWebdesign
Software and Website Development Company
Software and Website Development CompanySoftware and Website Development Company
Software and Website Development Company
samyakmahendra
 
Future Scope of Website Designing in India
Future Scope of Website Designing in IndiaFuture Scope of Website Designing in India
Future Scope of Website Designing in India
Gagandeep Singh Rawat
 
Mobuz Solutions | Things to remember when designing your website
Mobuz Solutions | Things to remember when designing your websiteMobuz Solutions | Things to remember when designing your website
Mobuz Solutions | Things to remember when designing your website
Mobuz Solutions Pvt Ltd
 
Future Of Digital Marketing
Future Of Digital MarketingFuture Of Digital Marketing
Future Of Digital Marketing
Neil Perkin
 
Everyone Should Be Able to Use Your Software: Building an Inclusive Software...
 Everyone Should Be Able to Use Your Software: Building an Inclusive Software... Everyone Should Be Able to Use Your Software: Building an Inclusive Software...
Everyone Should Be Able to Use Your Software: Building an Inclusive Software...
VMware Tanzu
 
web designing course in mohali in chandigarh
web designing course in mohali in chandigarhweb designing course in mohali in chandigarh
web designing course in mohali in chandigarh
tarun patyal
 
Web design
Web designWeb design
Web design
Kazi Nazmul
 

Similar to CSSibility... we should care (20)

What to include on the accessibility help page on your website
What to include on the accessibility help page on your websiteWhat to include on the accessibility help page on your website
What to include on the accessibility help page on your website
 
Web Development Trends That Boom In 2024.pdf
Web Development Trends That Boom In 2024.pdfWeb Development Trends That Boom In 2024.pdf
Web Development Trends That Boom In 2024.pdf
 
Web Mining
Web MiningWeb Mining
Web Mining
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Martin Paver
Martin PaverMartin Paver
Martin Paver
 
Accessibility Anti Patterns with Dafydd Henke-Reed
Accessibility Anti Patterns with Dafydd Henke-ReedAccessibility Anti Patterns with Dafydd Henke-Reed
Accessibility Anti Patterns with Dafydd Henke-Reed
 
How to create accessible websites - Web Accessibility Summit
How to create accessible websites - Web Accessibility SummitHow to create accessible websites - Web Accessibility Summit
How to create accessible websites - Web Accessibility Summit
 
Developing a framework of design principles for single page websites and thei...
Developing a framework of design principles for single page websites and thei...Developing a framework of design principles for single page websites and thei...
Developing a framework of design principles for single page websites and thei...
 
Fundamentals of Web Design | Chandan Chakraborty
Fundamentals of Web Design | Chandan ChakrabortyFundamentals of Web Design | Chandan Chakraborty
Fundamentals of Web Design | Chandan Chakraborty
 
Marketing Without Barriers: Considering Digital Accessibility for Customers a...
Marketing Without Barriers: Considering Digital Accessibility for Customers a...Marketing Without Barriers: Considering Digital Accessibility for Customers a...
Marketing Without Barriers: Considering Digital Accessibility for Customers a...
 
Introduction to digital accessibility - AbilityNet training 23 April 2020
Introduction to digital accessibility - AbilityNet training 23 April 2020Introduction to digital accessibility - AbilityNet training 23 April 2020
Introduction to digital accessibility - AbilityNet training 23 April 2020
 
Webdesign
WebdesignWebdesign
Webdesign
 
Webdesign
WebdesignWebdesign
Webdesign
 
Software and Website Development Company
Software and Website Development CompanySoftware and Website Development Company
Software and Website Development Company
 
Future Scope of Website Designing in India
Future Scope of Website Designing in IndiaFuture Scope of Website Designing in India
Future Scope of Website Designing in India
 
Mobuz Solutions | Things to remember when designing your website
Mobuz Solutions | Things to remember when designing your websiteMobuz Solutions | Things to remember when designing your website
Mobuz Solutions | Things to remember when designing your website
 
Future Of Digital Marketing
Future Of Digital MarketingFuture Of Digital Marketing
Future Of Digital Marketing
 
Everyone Should Be Able to Use Your Software: Building an Inclusive Software...
 Everyone Should Be Able to Use Your Software: Building an Inclusive Software... Everyone Should Be Able to Use Your Software: Building an Inclusive Software...
Everyone Should Be Able to Use Your Software: Building an Inclusive Software...
 
web designing course in mohali in chandigarh
web designing course in mohali in chandigarhweb designing course in mohali in chandigarh
web designing course in mohali in chandigarh
 
Web design
Web designWeb design
Web design
 

Recently uploaded

"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
Fwdays
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
Fwdays
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Neo4j
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
zjhamm304
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
Pablo Gómez Abajo
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
Demystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through StorytellingDemystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through Storytelling
Enterprise Knowledge
 
"What does it really mean for your system to be available, or how to define w...
"What does it really mean for your system to be available, or how to define w..."What does it really mean for your system to be available, or how to define w...
"What does it really mean for your system to be available, or how to define w...
Fwdays
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
christinelarrosa
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
AI in the Workplace Reskilling, Upskilling, and Future Work.pptx
AI in the Workplace Reskilling, Upskilling, and Future Work.pptxAI in the Workplace Reskilling, Upskilling, and Future Work.pptx
AI in the Workplace Reskilling, Upskilling, and Future Work.pptx
Sunil Jagani
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
UiPathCommunity
 

Recently uploaded (20)

"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
Demystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through StorytellingDemystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through Storytelling
 
"What does it really mean for your system to be available, or how to define w...
"What does it really mean for your system to be available, or how to define w..."What does it really mean for your system to be available, or how to define w...
"What does it really mean for your system to be available, or how to define w...
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
AI in the Workplace Reskilling, Upskilling, and Future Work.pptx
AI in the Workplace Reskilling, Upskilling, and Future Work.pptxAI in the Workplace Reskilling, Upskilling, and Future Work.pptx
AI in the Workplace Reskilling, Upskilling, and Future Work.pptx
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
 

CSSibility... we should care