hreflang - Say what language the linked document is in.

You have an English HTML document with link,
<a href="">foo</a>
..where foo.html is a french document. To make the browser understand that linked document is french you can use the attribute 'hreflang'. So the html will be

<a href="" hreflang="fr">foo</a>

Why use this attribute? w3c says like this

"Armed with this additional knowledge, user agents should be able to avoid presenting "garbage" to the user. Instead, they may either locate resources necessary for the correct presentation of the document or, if they cannot locate the resources, they should at least warn the user that the document will be unreadable and explain the cause."

Related Posts by Categories

Widget by Hoctro | Jack Book

0 Responses: