link hreflang Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:link

Description

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

<p>java2s.com example page.</p>

</body>
</html>

Related Tutorials