WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Alts for text links

for

Number of posts in this thread: 13 (In chronological order)

From: L Snider
Date: Mon, Mar 26 2018 9:59AM
Subject: Alts for text links
No previous message | Next message →

Hi All,

Can anyone think of any examples of where alt text for text links could be
appropriate? There is no image associated with the link. I couldn't, but
just wanted to see if anyone has ever used them. I have seen this three
times in the last while on different websites that have alts and titles in
accordion links (used on links in each category not the category link).

Cheers

Lisa

From: Jared Smith
Date: Mon, Mar 26 2018 10:07AM
Subject: Re: Alts for text links
← Previous message | Next message →

You mean alt on the <a> element? This would not be proper HTML and will do
nothing for accessibility.

Jared

From: L Snider
Date: Mon, Mar 26 2018 10:21AM
Subject: Re: Alts for text links
← Previous message | Next message →

Hi Jared,

Yes, in all cases it was almost the same in the accordion sub category
links:
<a href="URL for PDF" alt="Download the PDF" title="Download the PDF">Doc
Title</a>

In all three, there was a small icon next to the link that must be coming
from the CSS, because there is no trace of it in the HTML at all. I haven't
had a chance to look at the css for any of these that I have come across,
but I am now trying to find the sites again so I can see what is up in
there.

It was odd to see three in a short time, and I just wondered what they were
doing, maybe making up for the icon alt? Even though the icon can be
invisible as it is duplicating everything there.

Cheers

Lisa






On Mon, Mar 26, 2018 at 11:07 AM, Jared Smith < = EMAIL ADDRESS REMOVED = > wrote:

> You mean alt on the <a> element? This would not be proper HTML and will do
> nothing for accessibility.
>
> Jared
> > > > >

From: glen walker
Date: Mon, Mar 26 2018 10:21AM
Subject: Re: Alts for text links
← Previous message | Next message →

If you want an attribute that is similar to the alt attribute but valid for
links, then aria-label or aria-describedby could be used. But as Jared
said, alt itself is not valid.

If your link doesn't have any text, then you could use aria-label. For
example:

<a href="...some path..." aria-label="register now"><i
class="myRegisterNowIcon"></a>

If your link has text but you need additional text, then you could use
aria-describedby. For example:

<h3 id="myid">Survey Results</h3>
...
<a href="...some path..." aria-describedby="myid">Read more</a>




On Mon, Mar 26, 2018 at 10:07 AM, Jared Smith < = EMAIL ADDRESS REMOVED = > wrote:

> You mean alt on the <a> element? This would not be proper HTML and will do
> nothing for accessibility.
>
> Jared
> > > > >

From: L Snider
Date: Mon, Mar 26 2018 10:29AM
Subject: Re: Alts for text links
← Previous message | Next message →

Hi Glen,

Thanks. Aria would have worked great, but wasn't used there. The link has
very good descriptive text (in all three cases), so that is why it was
weird. This must be a plug in likely for Drupal, as the code was almost the
same in each case.

Cheers

Lisa

On Mon, Mar 26, 2018 at 11:21 AM, glen walker < = EMAIL ADDRESS REMOVED = > wrote:

> If you want an attribute that is similar to the alt attribute but valid for
> links, then aria-label or aria-describedby could be used. But as Jared
> said, alt itself is not valid.
>
> If your link doesn't have any text, then you could use aria-label. For
> example:
>
> <a href="...some path..." aria-label="register now"><i
> class="myRegisterNowIcon"></a>
>
> If your link has text but you need additional text, then you could use
> aria-describedby. For example:
>
> <h3 id="myid">Survey Results</h3>
> ...
> <a href="...some path..." aria-describedby="myid">Read more</a>
>
>
>
>
> On Mon, Mar 26, 2018 at 10:07 AM, Jared Smith < = EMAIL ADDRESS REMOVED = > wrote:
>
> > You mean alt on the <a> element? This would not be proper HTML and will
> do
> > nothing for accessibility.
> >
> > Jared
> > > > > > > > > >
> > > > >

From: Lovely, Brian
Date: Mon, Mar 26 2018 10:41AM
Subject: Re: Alts for text links
← Previous message | Next message →

Civilization is crumbling; no one knows HTML any more. I see devs slapping alt attributes on just about anything.

-----Original Message-----
From: WebAIM-Forum [mailto: = EMAIL ADDRESS REMOVED = ] On Behalf Of Jared Smith
Sent: Monday, March 26, 2018 12:07 PM
To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
Subject: Re: [WebAIM] Alts for text links

You mean alt on the <a> element? This would not be proper HTML and will do nothing for accessibility.

Jared
The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.

From: L Snider
Date: Mon, Mar 26 2018 10:43AM
Subject: Re: Alts for text links
← Previous message | Next message →

Hi Brian,

I am starting to see that too in a few things, and wondering if it is just
not knowing the HTML or they are just trying to be creative, in a way that
makes no sense?

Cheers

Lisa

On Mon, Mar 26, 2018 at 11:41 AM, Lovely, Brian via WebAIM-Forum <
= EMAIL ADDRESS REMOVED = > wrote:

> Civilization is crumbling; no one knows HTML any more. I see devs slapping
> alt attributes on just about anything.
>
> -----Original Message-----
>
>

From: Sandy Feldman
Date: Mon, Mar 26 2018 11:05AM
Subject: Re: Alts for text links
← Previous message | Next message →

Lovely Brian, you're right. Civilization is crumbling.

best regards, Sandy


On 2018-03-26 12:41 PM, Lovely, Brian via WebAIM-Forum wrote:
> Civilization is crumbling; no one knows HTML any more. I see devs slapping alt attributes on just about anything.
>
> -----Original Message-----
> From: WebAIM-Forum [mailto: = EMAIL ADDRESS REMOVED = ] On Behalf Of Jared Smith
> Sent: Monday, March 26, 2018 12:07 PM
> To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
> Subject: Re: [WebAIM] Alts for text links
>
> You mean alt on the <a> element? This would not be proper HTML and will do nothing for accessibility.
>
> Jared
> > > >
> The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
> > > > --
Sandy

sandyfeldman.com
sandyfeldman.tumblr.com/
ca.linkedin.com/in/sandyfeldman
inclusivemedia.ca

From: JP Jamous
Date: Mon, Mar 26 2018 12:31PM
Subject: Re: Alts for text links
← Previous message | Next message →

Funny that you mention that Bryan. Here is one for you. How about this code that I witnessed the other day.

<<img> alt="" alt="Customer Support" src="Image.jpg">

I was thinking to myself, someone really failed HTML 101 or did not even take it.



--------------------
JP Jamous
Senior Digital Accessibility Engineer
E-Mail Me |Join My LinkedIn Network
--------------------


-----Original Message-----
From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of Lovely, Brian via WebAIM-Forum
Sent: Monday, March 26, 2018 11:41 AM
To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
Subject: Re: [WebAIM] Alts for text links

Civilization is crumbling; no one knows HTML any more. I see devs slapping alt attributes on just about anything.

-----Original Message-----
From: WebAIM-Forum [mailto: = EMAIL ADDRESS REMOVED = ] On Behalf Of Jared Smith
Sent: Monday, March 26, 2018 12:07 PM
To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
Subject: Re: [WebAIM] Alts for text links

You mean alt on the <a> element? This would not be proper HTML and will do nothing for accessibility.

Jared

From: Birkir R. Gunnarsson
Date: Mon, Mar 26 2018 12:41PM
Subject: Re: Alts for text links
← Previous message | Next message →

When I validate a page I run it through an HtML validator (hey, I am
in charge of the program, I can set a few extra rules).
I flag improper use of HTML as potential accessibility violations
unless they already affect the page in which case I flag them under
the appropriate WCAG success criterion.
If you see weird code, run it through the Nu HtML Checker, you can
copy the specific HtML node and validate it by pasting it into the Nu
checker text editor (select "text" from the dropdown).


On 3/26/18, JP Jamous < = EMAIL ADDRESS REMOVED = > wrote:
> Funny that you mention that Bryan. Here is one for you. How about this code
> that I witnessed the other day.
>
> <<img> alt="" alt="Customer Support" src="Image.jpg">
>
> I was thinking to myself, someone really failed HTML 101 or did not even
> take it.
>
>
>
> --------------------
> JP Jamous
> Senior Digital Accessibility Engineer
> E-Mail Me |Join My LinkedIn Network
> --------------------
>
>
> -----Original Message-----
> From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of
> Lovely, Brian via WebAIM-Forum
> Sent: Monday, March 26, 2018 11:41 AM
> To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
> Subject: Re: [WebAIM] Alts for text links
>
> Civilization is crumbling; no one knows HTML any more. I see devs slapping
> alt attributes on just about anything.
>
> -----Original Message-----
> From: WebAIM-Forum [mailto: = EMAIL ADDRESS REMOVED = ] On Behalf
> Of Jared Smith
> Sent: Monday, March 26, 2018 12:07 PM
> To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
> Subject: Re: [WebAIM] Alts for text links
>
> You mean alt on the <a> element? This would not be proper HTML and will do
> nothing for accessibility.
>
> Jared
> > > https://urldefense.proofpoint.com/v2/url?u=http-3A__list.webaim.org_&d=DwIGaQ&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r=MMimM36KI-FWX0bnlG1RIfPA1CXbOiX6a5UedKkw4PqI-30JMTJzCvKRzJYC8JBO&m=mmZIXsc6TDH6IMZPyYSK7j2ryC2egoJuQHQ9eHDZFQ0&s=zSuvc8P9AXfe-jaYYldOI8xIl8MO9vSvz-aLz5c3AdE&e> List archives at
> https://urldefense.proofpoint.com/v2/url?u=http-3A__webaim.org_discussion_archives&d=DwIGaQ&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r=MMimM36KI-FWX0bnlG1RIfPA1CXbOiX6a5UedKkw4PqI-30JMTJzCvKRzJYC8JBO&m=mmZIXsc6TDH6IMZPyYSK7j2ryC2egoJuQHQ9eHDZFQ0&s=_G2VdzZV_6hYV-JGQ8HFda-LOwZdNy4n9_oMtEeQivA&e> > >
> The information contained in this e-mail is confidential and/or proprietary
> to Capital One and/or its affiliates and may only be used solely in
> performance of work or services for Capital One. The information transmitted
> herewith is intended only for use by the individual or entity to which it is
> addressed. If the reader of this message is not the intended recipient, you
> are hereby notified that any review, retransmission, dissemination,
> distribution, copying or other use of, or taking of any action in reliance
> upon this information is strictly prohibited. If you have received this
> communication in error, please contact the sender and delete the material
> from your computer.
> > > http://webaim.org/discussion/archives
> >
> > > > >


--
Work hard. Have fun. Make history.

From: Lovely, Brian
Date: Mon, Mar 26 2018 12:45PM
Subject: Re: Alts for text links
← Previous message | Next message →

I think my top two accessibility tips for developers are:

Don't add anything unless you have to, and use correct HTML.

-----Original Message-----
From: WebAIM-Forum [mailto: = EMAIL ADDRESS REMOVED = ] On Behalf Of Birkir R. Gunnarsson
Sent: Monday, March 26, 2018 2:41 PM
To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
Subject: Re: [WebAIM] Alts for text links

When I validate a page I run it through an HtML validator (hey, I am in charge of the program, I can set a few extra rules).
I flag improper use of HTML as potential accessibility violations unless they already affect the page in which case I flag them under the appropriate WCAG success criterion.
If you see weird code, run it through the Nu HtML Checker, you can copy the specific HtML node and validate it by pasting it into the Nu checker text editor (select "text" from the dropdown).


On 3/26/18, JP Jamous < = EMAIL ADDRESS REMOVED = > wrote:
> Funny that you mention that Bryan. Here is one for you. How about this
> code that I witnessed the other day.
>
> <<img> alt="" alt="Customer Support" src="Image.jpg">
>
> I was thinking to myself, someone really failed HTML 101 or did not
> even take it.
>
>
>
> --------------------
> JP Jamous
> Senior Digital Accessibility Engineer
> E-Mail Me |Join My LinkedIn Network
> --------------------
>
>
> -----Original Message-----
> From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of
> Lovely, Brian via WebAIM-Forum
> Sent: Monday, March 26, 2018 11:41 AM
> To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
> Subject: Re: [WebAIM] Alts for text links
>
> Civilization is crumbling; no one knows HTML any more. I see devs
> slapping alt attributes on just about anything.
>
> -----Original Message-----
> From: WebAIM-Forum [mailto: = EMAIL ADDRESS REMOVED = ] On
> Behalf Of Jared Smith
> Sent: Monday, March 26, 2018 12:07 PM
> To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
> Subject: Re: [WebAIM] Alts for text links
>
> You mean alt on the <a> element? This would not be proper HTML and
> will do nothing for accessibility.
>
> Jared
> > > https://urldefense.proofpoint.com/v2/url?u=http-3A__list.webaim.org_&d
> =DwIGaQ&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r=MMimM36KI-FWX0
> bnlG1RIfPA1CXbOiX6a5UedKkw4PqI-30JMTJzCvKRzJYC8JBO&m=mmZIXsc6TDH6IMZPy
> YSK7j2ryC2egoJuQHQ9eHDZFQ0&s=zSuvc8P9AXfe-jaYYldOI8xIl8MO9vSvz-aLz5c3A
> dE&e> List archives at
> https://urldefense.proofpoint.com/v2/url?u=http-3A__webaim.org_discuss
> ion_archives&d=DwIGaQ&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r> MMimM36KI-FWX0bnlG1RIfPA1CXbOiX6a5UedKkw4PqI-30JMTJzCvKRzJYC8JBO&m=mmZ
> IXsc6TDH6IMZPyYSK7j2ryC2egoJuQHQ9eHDZFQ0&s=_G2VdzZV_6hYV-JGQ8HFda-LOwZ
> dNy4n9_oMtEeQivA&e= > = EMAIL ADDRESS REMOVED =
> >
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The
> information transmitted herewith is intended only for use by the
> individual or entity to which it is addressed. If the reader of this
> message is not the intended recipient, you are hereby notified that
> any review, retransmission, dissemination, distribution, copying or
> other use of, or taking of any action in reliance upon this
> information is strictly prohibited. If you have received this
> communication in error, please contact the sender and delete the material from your computer.
> > > https://urldefense.proofpoint.com/v2/url?u=http-3A__list.webaim.org_&d
> =DwIGaQ&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r=MMimM36KI-FWX0
> bnlG1RIfPA1CXbOiX6a5UedKkw4PqI-30JMTJzCvKRzJYC8JBO&m=Q9AqfA3lE3randyQP
> JEJ6_N-bKlUjVguXjbfnbIE54k&s=vlk8SvbkSrAJgbb7ZPOSUqG5tXdYnwFq8LPEBot9e
> fo&e= List archives at
> https://urldefense.proofpoint.com/v2/url?u=http-3A__webaim.org_discuss
> ion_archives&d=DwIGaQ&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r> MMimM36KI-FWX0bnlG1RIfPA1CXbOiX6a5UedKkw4PqI-30JMTJzCvKRzJYC8JBO&m=Q9A
> qfA3lE3randyQPJEJ6_N-bKlUjVguXjbfnbIE54k&s=AoxGwqbN8MsYigJL1rfav1Vjkp3
> ScMZRAhXuKDtit_w&e= > = EMAIL ADDRESS REMOVED =
>
> > > https://urldefense.proofpoint.com/v2/url?u=http-3A__list.webaim.org_&d
> =DwIGaQ&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r=MMimM36KI-FWX0
> bnlG1RIfPA1CXbOiX6a5UedKkw4PqI-30JMTJzCvKRzJYC8JBO&m=Q9AqfA3lE3randyQP
> JEJ6_N-bKlUjVguXjbfnbIE54k&s=vlk8SvbkSrAJgbb7ZPOSUqG5tXdYnwFq8LPEBot9e
> fo&e= List archives at
> https://urldefense.proofpoint.com/v2/url?u=http-3A__webaim.org_discuss
> ion_archives&d=DwIGaQ&c=pLULRYW__RtkwsQUPxJVDGboCTdgji3AcHNJU0BpTJE&r> MMimM36KI-FWX0bnlG1RIfPA1CXbOiX6a5UedKkw4PqI-30JMTJzCvKRzJYC8JBO&m=Q9A
> qfA3lE3randyQPJEJ6_N-bKlUjVguXjbfnbIE54k&s=AoxGwqbN8MsYigJL1rfav1Vjkp3
> ScMZRAhXuKDtit_w&e= > = EMAIL ADDRESS REMOVED =
>


--
Work hard. Have fun. Make history.
The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.

From: glen walker
Date: Mon, Mar 26 2018 12:59PM
Subject: Re: Alts for text links
← Previous message | Next message →

I do similar to Birkir, but just to clarify, I only mark invalid html that
could affect accessibility. There could potentially be lots of html errors
that are just bad html coding practices but don't affect accessibility.
While those should be fixed, I like to stay focused just on accessibility
issues.

From: L Snider
Date: Thu, Mar 29 2018 8:07AM
Subject: Re: Alts for text links
← Previous message | No next message

Thanks everyone! Good to know others see weird things too, although maybe
that isn't so good!

Cheers

Lisa

On Mon, Mar 26, 2018 at 1:59 PM, glen walker < = EMAIL ADDRESS REMOVED = > wrote:

> I do similar to Birkir, but just to clarify, I only mark invalid html that
> could affect accessibility. There could potentially be lots of html errors
> that are just bad html coding practices but don't affect accessibility.
> While those should be fixed, I like to stay focused just on accessibility
> issues.
> > > > >