Alt text for iframe images

3 views
Skip to first unread message

Sean Fitzpatrick

unread,
Jun 17, 2025, 1:32:57 PM6/17/25
to PreTeXt accessibility
Cross-posting from pretext-dev:

I've got <description> implemented for <asymptote>. (That is, the 'info' button containing the long description. This has been implemented for latex-image but not asymptote.)

But I would like to know what others think about what to do with <shortdescription>.
For latex-image, this supplies the content of the 'alt' attribute on the image element in HTML.
But 3D Asymptote images (which are WebGL .html files) are loaded in an iframe.
I still need to check on what happens to shortdescription for 2D asymptote.

Reading a few articles online suggests that "title" is recommended for accessibility on iframes, but it seems possible to include alt text.

What is the better approach?

1. <iframe title="(contents of <shortdescription>)" ... other attributes></iframe>
2. <iframe (attributes)> contents of <shortdescription></iframe>
3. Something else?

Sean Fitzpatrick

unread,
Jun 27, 2025, 4:30:09 PM6/27/25
to PreTeXt accessibility

I decided to put the contents of the short description into the title attribute.

I think this gets read by screen readers.


--
You received this message because you are subscribed to the Google Groups "PreTeXt accessibility" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-a11y...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-a11y/5769a954-a6a0-42ad-89cf-17a3410b8308n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages