WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: empty anchor tags

for

From: Angela French
Date: Feb 24, 2012 11:06AM


These particular empty tags exist in code that I inherited. I'm testing their removal now. Thank you for the feedback.
Angela French

>
>It may also be that these links are used to trigger JavaScript functions. I have
>seen cases of background CSS being used to display an image, and an empty
>anchor is in the actual HTML code to trigger the function.
>
>As Jared stated, these empty anchors should be removed, but if it is the case
>that they are being used to trigger JS calls, you will need to ensure an
>accessible replacement in the page content.
>
>Tony
>
>