HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The hreflang attribute specifies the language of the linked document."
The hreflang
attribute specifies the language of the linked document.
The hreflang
attribute can be used on the following elements:
The hreflang attribute specifies the language of the document in the link:
<a href="https://w3resource.net" hreflang="en">w3resource</a>
An image map, with clickable areas:
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun"
href="sun.htm" hreflang="en">
</map>
Here, the hreflang attribute indicates that the linked document is in English:
<link href="tag_link" rel="parent" rev="subsection" hreflang="en">
The hreflang
attribute has the following browser support for each element:
Element | |||||
---|---|---|---|---|---|
a | Yes | Yes | Yes | Yes | Yes |
area | Yes | Yes | Yes | Yes | Yes |
link | Yes | Yes | Yes | Yes | Yes |