The title
attribute is a useful way to give users extra context for a link. However, this content should be complementary content and should not be the exact same value as the link text.
This rule checks links for the presence of a title
attribute and ensures that it is not the same as the link text.
This rule forbids the following:
This rule allows the following:
- If the
title
attribute value is the same as the link text, it's better to leave it out.