Rectangle 27 0

html5 What is the correct semantics for language switching navigation?

<a lang="de" hreflang="de" title="Wasser" href="//">Deutsch</a>

NB: the lang attribute is not link specific. it specifies the language of the content of the tag (wikipedia puts it also in the <html>- tag and on the <h1> header-tag.), while hreflang specifies the language of the page you are linking to.

you should add a lang and hreflang attribute on the link, with an IETF language tag (bcp47) as the target value, see e.g. the links in wikipedia's article on water to the same item in other languages: