Add title in links


#1

I was translating and I saw that the links do not have TITLE.
Is there a reason?

An example:

I see the “powered_by_html” translation key, it said: “Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled

I think the link must have the “title” property for SEO purposes.

Maybe could be:
Powered by <a href="https://www.discourse.org" title="Discourse - Civilized Discussion">Discourse</a>, best viewed with JavaScript enabled

What do you think?


(Mittineague) #2

Anchor link title attributes are optional.
They have a purpose, but that purpose is in regards to improving Accessibility not SEO

https://www.w3.org/TR/WCAG20-TECHS/H33.html

https://www.w3.org/TR/REC-html40/struct/links.html#h-12.1.4

The title attribute value, when present, is not a place for “keywords”.

The title attribute is used to provide additional information to help clarify or further describe the purpose of a link.

.

The title attribute may be set for both A and LINK to add information about the nature of a link. This information may be spoken by a user agent, rendered as a tool tip, cause a change in cursor image, etc.


#3

Thanks., my mistake.

So… no changes for improving accessibility? :thumbsup:


(cpradio) #4

I’m not sure adding one would improve accessibility though. Think about it, as a screen reader, it would read “Powered by Discourse, best viewed with JavaScript enabled”, versus “Powered by Discourse - Civilized Discussion, best viewed with JavaScript enabled”

I’d lean towards the former rather than the latter. But I guess it doesn’t matter a whole lot either way.


(Mittineague) #5

It possibly could be improved, but I don’t see the need to clarify the links purpose.
That is, for me, having title="go to the Discourse site" doesn’t tell me anything that isn’t inferred from it being a link with the text Discourse.
But that doesn’t mean it having a title wouldn’t help at least some users.