link hreflang Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:link


The hreflang attribute sets the language of the text in the linked document.

Attribute Values

Value Description
language_code A two-letter language code that specifies the language of the linked document.

The following hreflang attribute indicates that the linked document is in English:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
  <link href="tag_link.asp" rel="parent" rev="subsection" hreflang="en">
</head><!--from w  ww.j a v a 2 s. co  m-->

<p> example page.</p>


Related Tutorials