Element has the same content as its title attribute


Rule ID: label-duplicated-content-title

This rule determines if a given element <label> contains attribute title with the same accessible name.


    Let’s examine following example:

    <label for="example" title="This is an example">This is an example</label>

    Assuming screen reader can read title. In above case, then This is an example will be read twice. To avoid that, this rule helps to find such cases.

    Note that by default, for example, VoiceOver doesn’t read title until Hints are turned on.


    Accessibility, Best Practices