Developer Corner - Email addresses causing an H30 Accessibility error

15 Feb 2021 | Developer Corner

Helen Grimbly
  • Tweet this item
  • share this item on Linkedin

This week, Support Lead, Helen Grimbly explains why a link to two similar emails in a web page can cause an H30 error:

H30 - Providing link text that describes the purpose of a link for anchor elements

If the following two links are contained in the same web page this will raise an H30 Accessibility error in Sitemorse:

<a href="mailto:council@example.org?subject=Waste%20Collection">council@example.org</a>

<a href="mailto:council@example.org">council@example.org</a>

The addition of the Subject, in the first link, makes the mailto links different. We recommend if the Subject isn't important then it could be removed, or if it is important then to indicate the difference in the link text. For example the first link could instead be labelled 'Email council waste department':

<a href="mailto:council@example.org?subject=Waste%20Collection">Email council waste department</a>

<a href="mailto:council@example.org">council@example.org</a>

For more information on H30 and further examples please see the following article: 
https://sitemorse.com/blog-article/9349/tech-update-accessibility-technique-h30/