Remove title attributes in most places
Description
According to https://www.a11yproject.com/posts/title-attributes/ title attributes should not be used, except in special circumstances. I agree and think we should remove them (especially on <a>s where we currently set them to the page title).
I know that the post might be old (2013) but I do think that this still holds value till today.
Seo-Experts might be just adding it because their SEO-Tools are SHOUTING FOR IT.
Google on title tags (2020)
-
https://www.youtube.com/watch?v=Ak7r3oS1g4Q&t=1208s
A11Y is a big thing here... From an SEO point of view, I don't think it's something that`s super critical...
W3C on title tags
-
https://www.w3.org/TR/WCAG20-TECHS/H33.html
The title attribute is used to provide additional information to help clarify or further describe the purpose of a link.
Basically: It may not improve SEO and we should focus more on A11Y - Which will boost SEO
Related: #6361 #5395
I agree with @zoglo. We shouldn't remove something that could provide value, especially if it means breaking a lot of stuff (tips) for absolutely no benefit. I tested the links with VoiceOver, it does only read the link/image title of a DCA operation once, so there's no problem with duplication (at least in my case):
We shouldn't remove something that could provide value
It harms the usabililty for people that have a screenreader with title attributes enabled, see https://github.com/contao/contao/issues/6361#issuecomment-1702495691
especially if it means breaking a lot of stuff (tips)
The tooltips have to be adjusted in a pull request that removes the titles.
As discussed, we want to
- remove the
titleattributes in thenav_defaulttemplate and themod_breadcrumbtemplate (front end); - remove the
titleattributes in the link insert tags (front end); - remove the
titleattributes from links with icons because the icon should have the title asaltattributes (back end).