Working closely with HTTP, the hreflang attribute tells search engines the page’s language and its geographical targeting. The attribute becomes especially useful to websites when they produce content in different languages or with regional targeting. With it, a website owner informs search engines about the language or location bias of a page so that users see the correct version. Therefore, hreflang tags are useful in preventing duplicate content and serving users the version most suitable to their needs. The Hreflang tags, in short, contain primarily the language code and optionally the region code. For example, the following code instructs search engines that the page at https://example.com/es/ is a Spanish version for users in Spain: . Correct implementation of hreflang on multilingual websites is very important for avoiding penalties for duplicate content and for delivering the right language version to the user. Hreflang tags are located in the HTML head and can also be included in HTTP headers and Sitemaps.