HTML Content Languages Regional URLs


Example

It is possible to add the attribute hreflang to the elements <a> and <area> that create hyperlinks. Such it specifies the language of the linked resource. The language defined must be a valid BCP 47[1] language tag.

<p>
    <a href="example.org" hreflang="en">example.org</a> is one of IANA's example domains.
</p>

  1. ↑ IETF Network Working Group: RFC 5646 Tags for Identifying Languages, IETF, September 2009