I have a table cell with max-width set and if the text within the cell is too long, it gets truncated with ellipsis.
Therefore, would using the title attribute to display the full text be an appropriate (accessible) solution?
If the text is truncated by means of CSS's text-overflow: ellipsis
: Yes, the title
attribute is a working solution for screen readers.
It does not even matter if it's being read by screen readers, since the original (visually truncated) text will be fully read.
On the other hand, title attributes are not accessible by keyboard, touch screen and other means.
For your case I would see the following solutions:
title
if the truncated text is but a preview and linked with another view showing the full version…
In all cases screen reader users will already have access to the full text without additional interaction.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With