w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it

link hreflang attribute

The hreflang attribute on the link element:



<linkattribute="value(s)" >Examples
2.hreflang=language code<link rel="alternate" href="URL" hreflang="language_code">

Video demonstration link hreflang attribute

HTML5 link hreflang attribute Tutorial

min video details
00:09 this video tutorial presents the hreflang attribute on link element
00:19 <link rel="author" href="about_author.php">

the linked resource "about_author.php" holds information about the the author of the current document

the language of the resource "about_author.php" is English and we can specify this as a purely advisory information for user agents through hreflang attribute
00:29 adding the hreflang attribute to link element
00:37 adding the language code for English language which is: en
00:42 that's it; you're done!
this is how you can specify the language of the linked resource on a link element
link intro link optional link browser display link parents link examples & interpretation hyperlink vs external resource link link syntaxlink href attributelink media attributelink rel attributelink type attributelink itemprop attributelink title attribute