Alt text for <brandlogo>

21 views
Skip to first unread message

Mark Fitch

unread,
Apr 18, 2026, 1:33:56 AMApr 18
to PreTeXt support
How does one put specific alt text in for the brandlogo element? In
current context I want to add "MAA logo" in for a conference program.

Dr. Mark A. Fitch
Professor of Mathematics

maf...@alaska.edu
907-786-1656
SSB 154
University of Alaska Anchorage
3211 Providence Drive, Anchorage, AK 99508

Rob Beezer

unread,
Apr 19, 2026, 9:49:56 AMApr 19
to pretext...@googlegroups.com
Dear Mark,

Sorry for the delay, I had to investigate a bit.

Short answer: there is not a way to do this right now.

We are putting in alt text, it generically says "Logo image". We have an option
for other images to describe them as "decorative" - this is something standard
that is done when an image is not really content, but is a decoration. It gets
an empty string for the alt-text.

Question: should we have a #shortdescription, or similar? Default to "Logo
image" if not provided? Or should we not solicit any alt-text and always mark
this image as a decoration? Or an exclusive-or: decorative or #shortdescription?

Rob

Andrew Scholer

unread,
Apr 19, 2026, 11:46:49 AMApr 19
to pretext...@googlegroups.com
The logo should probably have a blank alt-text. It is decorative, not informative. If there is no @url specified in the brand-logo, there is no point to describing the image.

However, if there is an @url, the link it is in needs a description. Right now a screen reader says something like "Link Logo Image". But rather than rely on alt of the image, we probably should directly label the link.

I believe what we want there is something like:

<a href="http://www.apexcalculus.com" aria-label="Visit APEX Calculus">
  <img src="external/images/APEX.png" alt=""/>
</a>

Without something meaningful to put in the aria-label, that link is an accessibility issue. Thus, I would say that brand-logo should have something like @url-description and that @url without @url-description should be a relatively aggressive error.

Andrew


--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/MTAwMDAxNC5iZWV6ZXI.1776606593%40pnsh.

Rob Beezer

unread,
Apr 19, 2026, 2:38:55 PMApr 19
to pretext...@googlegroups.com
Thanks, that sounds good. I'm adverse to putting visible content into attributes, though maybe it is a toss-up here. So I'll give @url-description some thought.

Rob
Reply all
Reply to author
Forward
0 new messages