How to specify language of the target URL in HTML5 ? Last Updated : 28 Jun, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report 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. Note: If the target document is in English then en is passed as the value. Syntax: <area hreflang="language_code"> Example: The following code also uses the HTML map tag. HTML <!DOCTYPE html> <html> <body style="text-align: center"> <img src= "https://media.geeksforgeeks.org/wp-content/uploads/20210620081018/ell-300x156.png" alt="Geeks_logo" width="200" height="100" usemap="#gfg" border="4px solid green" /> <map name="gfg"> <area shape="ellipse" coords="100,49,50,30" href="https://www.geeksforgeeks.org/" hreflang="en" /> </map> </body> </html> Output: Comment More infoAdvertise with us Next Article How to specify the language of the document in a given link in HTML5 ? M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes HTML-Questions Similar Reads How to specify media type of the target URL in HTML5 ? You can easily specify the media type of the target URL in HTML5 using the media attribute of HTML. This attribute is used to specify that the target URL is designed for special devices (like iPhone, Android, etc), speech or print media, projectors, tv, and so on.Syntax:<a href="" media="screen" 2 min read How to specify the URL of the media file in HTML5 ? Here we will see how to set the URL of a media file using HTML. To set the URL of media file we use <source> tag. This tag is used to attach multimedia files like audio, video and pictures. The <audio>, <video> and <picture> elements contain the <source> element. Syntax 1 min read How to specify the language of the document in a given link in HTML5 ? In the HTML5 language of the document, a given link is specified by hreflang attribute. The value (or languageCode) passed here is the code of the website language. (e.g., if the document/website in the given link is in English en is passed as the value). Example 1: Below is the example that illustr 1 min read How to set the language of text in the linked document in HTML5 ? The approach of this article is to specify the language of the text in the linked document in HTML5 by using a hreflang attribute in the HTML Tag. The value (or languageCode) passed here is the code of the linked document. (for e.g. if the document/website in the given link is in English en is passe 1 min read How to specify URL of resource to be used by the object in HTML5 ? In this article, we will cover how to specify the URL of the resource to be used by the object in HTML5. It can be used on pages where content from an external source is required. It can be done by setting the data attribute to the specified URL in the <object> tag. Syntax: <object data="UR 1 min read How to switch the language of the page using JavaScript ? Switching the language of a webpage using JavaScript involves dynamically changing the text content based on the user's language selection. This can be done by loading language-specific text from a predefined dataset, translating page elements, or reloading content from a localized source using Java 3 min read Like