You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contribute-docs/style-guide/accessibility.md
+42-55Lines changed: 42 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,27 +7,25 @@ description: Guidelines for writing accessible and inclusive content.
7
7
8
8
These guidelines are intended for all content authors and contains common tips and tricks for writing accessible content. It is not exhaustive and does not replace the official [WCAG 2.0 guidelines](https://www.w3.org/TR/2008/REC-WCAG20-20081211/#guidelines).
9
9
10
-
### What is accessible content
11
-
12
10
**Accessibility** for content means ensuring that all of our users can understand the content we publish—all of it—independently of how they choose or have to interact with it.
13
11
14
12
Our users and readers are diverse, with different abilities and disabilities.
15
13
They also interact with our content in different ways, such as screen readers, mobile devices, and Braille. The list is long and constantly evolving.
16
14
17
15
As content authors, it is our responsibility to provide them with [perceivable, operable, understandable, and robust content](https://www.w3.org/TR/UNDERSTANDING-WCAG20/intro.html#introduction-fourprincs-head).
18
16
19
-
###Guidelines
17
+
## Guidelines[accessibility-guidelines]
20
18
21
19
✔️ **Make your content quickly scannable.** A clear structure and meaningful words will tell users if the content is relevant to them within seconds. Use unique headings, and put the most important information first.
22
20
23
21
✔️ **Add alt text for all images, icons, and media files.** Screen readers, Braille output devices, and search engines love concise, accurate alt text that describes what cannot always be displayed, viewed, or heard on screen.
24
22
25
23
:::{dropdown} Examples
26
-
✔️ **Do:**
24
+
✔️ **Do:**
27
25
28
-
```html
29
-
<imgsrc="signup.png"alt="Signup page for Elastic Cloud" />
30
-
```
26
+
```md
27
+

28
+
```
31
29
32
30
Note: Do not use special characters, such as backticks (`), in alt text. They are known to cause
33
31
formatting issues when building pages.
@@ -45,32 +43,34 @@ Note: Do not use special characters, such as backticks (`), in alt text. They ar
45
43
✔️ **Use parallel writing structures for similar things.** For example, don't use a combination of verbs and noun phrases to start each item in a list. Choose one or the other.
46
44
47
45
:::{dropdown} Examples
48
-
❌ **Don't:**
49
-
* Navigate Elastic Security's various tools and interfaces.
50
-
* Use Elastic Security's detection engine with custom and prebuilt rules.
51
-
* System requirements, workspaces, configuration, and data ingestion.
52
-
53
-
✔️ **Do:**
54
-
* Navigate Elastic Security's various tools and interfaces.
55
-
* Use Elastic Security's detection engine with custom and prebuilt rules.
56
-
* Learn about system requirements, workspaces, configuration, and data ingestion.
46
+
❌ **Don't:**
47
+
48
+
* Navigate Elastic Security's various tools and interfaces.
49
+
* Use Elastic Security's detection engine with custom and prebuilt rules.
50
+
* System requirements, workspaces, configuration, and data ingestion.
51
+
52
+
✔️ **Do:**
53
+
54
+
* Navigate Elastic Security's various tools and interfaces.
55
+
* Use Elastic Security's detection engine with custom and prebuilt rules.
56
+
* Learn about system requirements, workspaces, configuration, and data ingestion.
57
57
58
58
:::
59
59
60
60
✔️ **Use meaningful link text.** Descriptive text instead of "click here", "read more", or even a raw URL for a link makes it easier for users to understand what to expect when they open it. Screen
61
61
readers jump between links by generating a list of them, and spell out URLs.
62
62
:::{dropdown} Examples
63
-
❌ **Don't:** "[Click here](https://www.elastic.co) and make search your best ally."
64
-
65
-
✔️ **Do:** "Visit [Elastic.co](https://www.elastic.co) and make search your best ally."
63
+
❌ **Don't:** "[Click here](https://www.elastic.co) and make search your best ally."
64
+
65
+
✔️ **Do:** "Visit [Elastic.co](https://www.elastic.co) and make search your best ally."
66
66
67
67
:::
68
68
69
69
✔️ **Use device-agnostic language when possible.** Users can access content and products in many ways. We do not know if they use a mouse, keyboard, tablet, or another device.
70
70
:::{dropdown} Examples
71
-
❌ **Don't:** "Enter a description and click the **Next** button."
72
-
73
-
✔️ **Do:** "Enter a description and select **Next**."
71
+
❌ **Don't:** "Enter a description and click the **Next** button."
72
+
73
+
✔️ **Do:** "Enter a description and select **Next**."
74
74
75
75
:::
76
76
@@ -84,7 +84,7 @@ readers jump between links by generating a list of them, and spell out URLs.
84
84
85
85
:::
86
86
87
-
###Terms
87
+
## Terms
88
88
89
89
| Avoid | Use instead |
90
90
| ----- | ----------- |
@@ -94,8 +94,7 @@ readers jump between links by generating a list of them, and spell out URLs.
94
94
| See | Check, refer to |
95
95
| Hear (hear about) | Learn |
96
96
97
-
98
-
### Testing content for accessibility
97
+
## Testing content for accessibility
99
98
100
99
Test as early and often as possible. It is always a good exercise to spot improvements early and develop good habits.
101
100
Here are a few methods that you can use to test content:
@@ -110,17 +109,12 @@ your website using mobile devices, and when doing so, be sure to check for acces
110
109
You don't need an actual phone to do this. The Chrome dev tools, for example, are a precious ally to test various layouts.
111
110
112
111
**Try a screen reader** to understand how users navigate websites using one of the screen
113
-
reader/browser combinations listed in the
114
-
<DocLink
115
-
id="techWritingGuidelinesAccessibility"
116
-
section="assistive-technologies"
117
-
text="Assistive technologies"
118
-
/> section.
112
+
reader/browser combinations listed in the [Assistive technologies](#assistive-technologies) section.
119
113
120
114
**Turn off speakers and microphones** to ensure the website experience is the same with
121
115
or without sound.
122
116
123
-
####Assistive technologies
117
+
## Assistive technologies
124
118
125
119
Assistive technology allows individuals with disabilities to access
126
120
information technology and perform functions that might be otherwise impossible, like
@@ -142,14 +136,12 @@ users with motor control difficulties.
142
136
These guidelines are intended for all content authors, whether you are a developer, designer, or writer.
143
137
This page is not exhaustive but provides some guidelines to write inclusive content for product content and technical documentation.
144
138
145
-
### What is inclusive content, and why does it matter?
139
+
**Inclusivity** for content means ensuring that the content we provide reflects the diversity of our community, respects it, and promotes positive change.
146
140
147
-
**Inclusivity** for content means ensuring that the content we provide reflects the diversity of our community, respects it, and promotes positive change.
141
+
### Guidelines [inclusivity-guidelines]
148
142
149
-
### Guidelines
143
+
### Write for an international audience
150
144
151
-
#### Write for an international audience
152
-
153
145
Our products and documentation use American English (en_US) as a standard for written content.
154
146
Yet they are used and read by people all around the globe, for whom English is not always their primary language.
155
147
Our content must take that into account.
@@ -159,26 +151,20 @@ Our content must take that into account.
159
151
160
152
***Short sentences**: They leave less space for interpretation. They are easier to scan, read, and translate.
161
153
162
-
***Plain language**: Active voice, present tense, using examples, and so on.
163
-
Some of these guidelines might already look familiar. Several countries have
164
-
[plain language initiatives](https://www.plainlanguage.gov/guidelines/) to
165
-
promote clearer communication. Do your
166
-
best to embrace these guidelines and focus on the message. We’re not going for
167
-
Scrabble high scores, and no one is carrying a thesaurus to read our docs.
154
+
***Plain language**: Active voice, present tense, using examples, and so on.
155
+
Some of these guidelines might already look familiar. Several countries have [plain language initiatives](https://www.plainlanguage.gov/guidelines/) to promote clearer communication.
156
+
Do your best to embrace these guidelines and focus on the message.
157
+
We’re not going for Scrabble high scores, and no one is carrying a thesaurus to read our docs.
168
158
Well, maybe the writers...
169
159
170
-
***Negation**: It is generally easier for everyone to say what something IS
171
-
versus what it is NOT. When you add a negative construction, it takes the
172
-
reader longer to parse the meaning of the phrase. Instead of saying, "You
173
-
cannot access the content without signing up", it's much easier to
174
-
read, "Sign up to access the content."
160
+
***Negation**: It is generally easier for everyone to say what something IS versus what it is NOT.
161
+
When you add a negative construction, it takes the reader longer to parse the meaning of the phrase.
162
+
Instead of saying, "You cannot access the content without signing up", it's much easier to read, "Sign up to access the content."
175
163
176
164
***Words with multiple meanings**:
177
-
Don't skip helper words if they make the sentence clearer or easier to read.
178
-
We try to be as literal and unambiguous as possible in our docs to ensure that
179
-
our readers from around the globe can consume them. One way to
180
-
achieve that is to choose words with fewer meanings, especially when a
181
-
word's intended meaning is not its primary meaning.
165
+
Don't skip helper words if they make the sentence clearer or easier to read.
166
+
We try to be as literal and unambiguous as possible in our docs to ensure that our readers from around the globe can consume them.
167
+
One way to achieve that is to choose words with fewer meanings, especially when a word's intended meaning is not its primary meaning.
182
168
183
169
:::{dropdown} Example
184
170
You may have noticed the rather poetic use of _consume_ in the
@@ -199,7 +185,8 @@ Our content must take that into account.
199
185
:::
200
186
201
187
✔️ **Be aware of differences and diversity in content and examples.**
202
-
Different people are used to different names, currencies, date and time formats, different measurement units (such as for temperature, distance, speed), and so much more.
188
+
Different people are used to different names, currencies, date and time formats, different measurement units (such as for temperature, distance, speed), and so much more.
189
+
203
190
* Avoid ambiguous values, like `04/05/06` for a date. Is it May 4 or April 5, and which year? `11/17/1987` leaves less room for interpretation if the exact format is not specified nearby.
204
191
* If there is no obvious example standard (RFC) to follow, try to be diverse to represent our audience.
205
192
@@ -239,7 +226,7 @@ Writing gender-neutral mainly consists of avoiding gender bias and word choices
239
226
✔️ **Pronouns.** In technical documentation, you can avoid this most of the time by addressing users directly.
240
227
When it's not possible, use *they*/*their*, even for singular. There's more than one gender, and it's not binary, either.
241
228
242
-
✔️ **Biased words and expressions.** Guys, mankind, policeman...these are all words we use and are used to hearing. But the default is not male.
229
+
✔️ **Biased words and expressions.** Guys, mankind, policeman...these are all words we use and are used to hearing. But the default is not male.
243
230
Most expressions and words that perpetuate this bias (that exists in many cultures and languages!) can be replaced with neutral alternatives or synonyms: Folks, humanity, police officer...
0 commit comments