hreflang html spanish code example Example: hreflang html The hreflang attribute specifies the language of the linked document.