Forum Moderators: Robert Charlton & goodroi
<link rel='alternate' hreflang='de' href='https://site.domain.com/title-of-the-page' />
<link rel='alternate' hreflang='en' href='https://en.site.domain.com/title-of-the-page' /> <a href='https://en.site.domain.com/title-of-the-page' rel='nofollow'>In English</a> <a href='https://site.domain.com/title-of-the-page' rel='nofollow'>Auf Deutsch</a> should only be found on the English version of the page to alert bots that an alternate language page exists.
I would drop the nofollow part, you want the bot to take a look so they can evaluate it and index it. With nofollow, they can't.
Wouldn't the link harm the ranking of the text "Title of the page"?If you mean it could help or boost the text's importance - yes it could. It would be better if it were a complete phrase, as in
View this page <a href="https://en.site.example.com/title-of-the-page">In English</a> The "title-of-the-page" is not the important element in the hreflang= meta link, it is smply the name of the same page in English (or German) it is not visible to users so it doesn't matter hugely what the name is - that only matters on the target page. The title of the page should preferably be in the language of the page it links to, I mean, that is what you want indexed. If all the pages have only English titles, that does not indicate a well done translation. Think of it as "what would benefit a person who does not speak English" or "what would benefit a person who does not speak German" for the titles and descriptions of the alternate language pages. That is what they would see in a search result. The title of the page should preferably be in the language of the page it links to, I mean, that is what you want indexed.