I understand the purpose of the title and alt attributes, but I just do not understand if I can use the same title and alt on one element.
- The title attribute is a global attribute, which means that you can use it on all elements. It represents advisory information. You can not relay on it.
- The alt attribute can only be used on some element. For the img element it a fallback, if you can not see the image for some reasons.
Someone told me, it causes an accesibility error, if you use the same text string for the title attribute and the alt attribute on one element (edit: if the element is an image). Is this correct? I cant find this rule any where.