CSS: Accessibility Flashcards

(12 cards)

1
Q

What is WebAIM’s Color Contrast Checker?

A

This online tool allows you to input the foreground and background colors of your design and instantly see if they meet the Web Content Accessibility Guidelines (WCAG) standards.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is TPGi Color Contrast Analyzer?

A

This is a free color contrast checker that allows you to check if your websites and apps meet the Web Content Accessibility Guidelines (WCAG) standards. This tool also comes with a Color Blindness Simulator feature which allows you to see what your website or app looks like for people with color vision issues.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Accessibility Tree?

A

Accessibility tree is a structure used by assistive technologies, such as screen readers, to interpret and interact with the content on a webpage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the “max()” Function?

A

The max() function returns the largest of a set of comma-separated values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is “display: none;” and how does it impact accessibility in CSS?

A

Using display: none; means that screen readers and other assistive technologies won’t be able to access this content, as it is not included in the accessibility tree. Therefore, it is important to use this method only when you want to completely remove content from both visual presentation and accessibility.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is “visibility: hidden” and how does it impact accessibility in CSS?

A

This property and value hides the content visually but keeps it in the document flow, meaning it still occupies space on the page. These elements will also no longer be read by screen readers because they will have been removed from the accessibility tree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the “.sr-only” CSS class? For example:
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

A

This is a common technique used to visually hide content while keeping it accessible to screen readers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the “scroll-behavior: smooth” Property?

A

This property and value enables a smooth scrolling behavior.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the “prefers-reduced-motion” feature? For example:
@media (prefers-reduced-motion: no-preference) {
* {
scroll-behavior: smooth;
}
}

A

This is a media feature that can be used to detect the user’s animation preference.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the “aria-hidden” Attribute?

A

Used to hide an element from people using assistive technology such as screen readers. For example, this can be used to hide decorative images that do not provide any meaningful content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the “hidden” Attribute?

A

This attribute is supported by most modern browsers and hides content both visually and from the accessibility tree. It can be easily toggled with JavaScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly