There Is No Character Limit For “alt Text”: Myth Debunked! - Eric Eggert
Có thể bạn quan tâm
When you search for alternative text length on the internet, there seems to be a pretty common understanding that “some screen readers” truncate alternative text1 after 125 characters:
The character limit for alt text is 125 characters, which is short, but just do the best you can.
Keep your alt text fewer than 125 characters. Screen-reading tools typically stop reading alt text at this point, cutting off long-winded alt text at awkward moments when verbalizing this description for the visually impaired.
Terrill Thompson did create a test page for it and documented his results: No screen reader cut off text altogether. JAWS – and I have tested this with a more recent version of it as well – will split up the alternative text into multiple graphics with shorter alternative text.
Screen readers do not just hide the rest of the text.
Additionally, I am pretty sure that the cut-off mentioned in Firefox does not exist anymore. At least I did not come across any truncated alternative texts.
My best guess is that some people have observed JAWS’ behavior and assumed that the text was truncated where it was only split up.
Alternative text best practices
I helped write a whole tutorial on images, so I don’t want to go into the details here, but the general rules are:
- If an image meaning or shows something, it needs alternative text.
- Alternative text depends on the context and usage of the image.
- Describe the image as succinct as possible, but also as detailed as needed.
Writing alternative text is an art more than a science, and sometimes you’ll leave out essential information. My litmus test is “would I picture an approximation of the image when it was described to me over the phone using the alternative text.”
- Note that many people use the phrase “alt text”, because the “traditional” way to use alternative text is through the alt attribute in HTML. These days, alternative text for images can come in different methods, including ARIA labels and descriptions or in some cases SVG titles. ↩
Từ khóa » Html Img Alt Text Max Length
-
Alt Text No More Than 100 Characters
-
How Long Can An "alt" Attribute Be? | DO-IT - University Of Washington
-
What Is The Limit Of Character To Use In Alt=“text” Of Img Tag In Html
-
Alt Text - Accessibility - Grand Valley State University
-
HTML Test Suite For WCAG 2.0 Test 3 - Image Alt Text Is Short. - W3C
-
Alt Text: Why It's Important For Accessibility & SEO - Moz
-
How To Fix The Alt Text Too Long Issue - Sitechecker
-
Image ALT Tag Tips For HTML - Accessibility At Penn State
-
Just How Long Should Alt Text Be? | CSS-Tricks
-
Alt Text SEO - Hobo Web
-
Alt Text Shouldn't Be More Than 100 Characters: UDOIT User Guide
-
Image Alt Text: What It Is, How To Write It, And Why It Matters To SEO
-
How Many Characters Are Used In An ALT Tag (maximum)? - Quora
-
HTML Img Alt Tags For SEO Best Practice - Search Engines Love ...