mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-26 02:22:09 +00:00
Relax advice on alt-text character count
This commit is contained in:
parent
7b941f8be7
commit
e013420d56
2 changed files with 2 additions and 2 deletions
|
@ -558,7 +558,7 @@ Expect some readers to have images disabled or unloaded. Examples include:
|
||||||
Accordingly, follow good practices for alt-text:
|
Accordingly, follow good practices for alt-text:
|
||||||
|
|
||||||
* Concisely summarize the image content the best you can, without repeating the surrounding content.
|
* Concisely summarize the image content the best you can, without repeating the surrounding content.
|
||||||
* Images should usually have alt-text under 100 characters, excluding punctuation. Save longer descriptions for a caption or "aria-describedby". Exceptions exist; this is just a weak norm.
|
* Images should usually have alt-text under 100 characters, excluding punctuation. Save longer descriptions for a caption or "aria-describedby". Exceptions exist; this is just a weak norm. If longer descriptions elsewhere aren't an option, disregard this advice and make alt-text as long as it needs to be.
|
||||||
* Don't include significant information that isn't present in the image; I'll cover how to handle supplementary information in the next subsections.
|
* Don't include significant information that isn't present in the image; I'll cover how to handle supplementary information in the next subsections.
|
||||||
|
|
||||||
The W3C's Web Accessibility Initiative (WAI) offers a decision tree for writing alt-text. It's a little lacking in nuance, but makes for a good starting point:
|
The W3C's Web Accessibility Initiative (WAI) offers a decision tree for writing alt-text. It's a little lacking in nuance, but makes for a good starting point:
|
||||||
|
|
|
@ -596,7 +596,7 @@ Accordingly, follow good practices for alt-text:
|
||||||
|
|
||||||
* Concisely summarize the image content the best you can, without repeating the surrounding content.
|
* Concisely summarize the image content the best you can, without repeating the surrounding content.
|
||||||
|
|
||||||
* Images should usually have alt-text under 100 ch.[^21] Save longer descriptions for a caption or <code>aria-<wbr />describedby</code>. Exceptions exist; this is just a weak norm.
|
* Images should usually have alt-text under 100 ch.[^21] Save longer descriptions for a caption or <code>aria-<wbr />describedby</code>. Exceptions exist; this is just a weak norm. If longer descriptions elsewhere aren't an option, disregard this advice and make alt-text as long as it needs to be.
|
||||||
|
|
||||||
* Don't include significant information that isn't present in the image; I'll cover how to handle supplementary information in the next subsections.
|
* Don't include significant information that isn't present in the image; I'll cover how to handle supplementary information in the next subsections.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue