Skip to content
Related Articles

Related Articles

Improve Article

How to specify language of the target URL in HTML5 ?

  • Last Updated : 28 Jun, 2021

In this article, we will learn how to set the language of the target URL in HTML5.

The task can be done by using the hreflang attribute while using the <area> tag. This property contains the value i.e languageCode which represents the two-letter code of the linked document language. 

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

Note: If the target document is in English then en is passed as the value.


<area hreflang="language_code">

Example:  The following code also uses the HTML map tag.


<!DOCTYPE html>
  <body style="text-align: center">
      border="4px solid green"
    <map name="gfg">


My Personal Notes arrow_drop_up
Recommended Articles
Page :