WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Icon instead of text > open in new window

for

From: Patrick H. Lauke
Date: May 8, 2017 4:51AM


On 08/05/2017 11:49, Fernand van Olphen wrote:
> Hi everyone,
>
> WCAG states that if a new window is opened advanced warning should be given to users (https://www.w3.org/TR/WCAG20-TECHS/G201.html).
>
> This can be done by including the warning-text in the link:
>
> <a href="knitting.html" target="_blank">All about Knitting (opens in new window)</a>
>
> However, what if the link is not text, but an icon (for example a facebook-icon). How can I warn the user that a new window will be opened?

By adding that to the alternative text (alt in case of <img>, etc).

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke