HTML | hreflang Attribute Read Courses Improve Improve Improve Like Article Like Save Article Save Report issue Report The HTML hreflang Attribute is used to specify the language for a linked document. It is used only when the href attribute is set. Syntax: <element hreflang="language_code"> Applicable <a><area><link> Example: This Example illustrates the use of hreflang attribute in anchor element. html <!DOCTYPE html> <html> <head> <title> HTML hreflang Attribute </title> </head> <body> <center> <h1> GeeksForGeeks </h1> <h2> HTML <a> hreflang Attribute </h2> <p>Welcome to <a href= "http://www.example.com:4097/test.htm#part2" id="GFG" rel="nofollow" hreflang="en-us" target="_self"> GeeksforGeeks </a> </p> </center> </body> </html> Output: Supported Browsers: The browser supported by hreflang Attribute are listed below: Google ChromeInternet ExplorerFirefoxOperaSafari Last Updated : 02 Dec, 2021 Like Article Save Article Previous HTML href Attribute Next HTML | http-equiv Attribute Share your thoughts in the comments Add Your Comment Please Login to comment...