HTML <link> hreflang Attribute

❮ HTML <link> tag


  <link href="link.html" rel="parent" hreflang="en">


The hreflang attribute is used to specifies the language of the linked resource.

It is purely advisory. Allowed values are determined by BCP47. Use this attribute only if the hrefhref attribute is present.

Standard Syntax

HTML: <link hreflang="languageCode">

XHTML: <link  hreflang="languageCode"/>

Browser Support


Attribute Values

Value Description
languageCode Specifies language code that the language of the linked document.
❮ HTML <link> tag