Link hreflang property
Link Object
Definition and Usage
The hreflang property specifies the language of the text in the linked document.
Syntax
Set the hreflang property:
linkObject.hreflang="
language-code
"
Return the hreflang property:
linkObject.hreflang
Browser support





All major browsers support the hreflang property.
Example
Example
Display the language of the linked document:
Try it »
Link Object