Another important attribute to include in the code of your pages is the Language attribute. If you have multiple versions of your site for different countries or languages, this attribute enables search engines to classify and present the searcher with the most relevant version of your page based on their country and language.

The hreflang attribute looks like this: hreflang=”fr‐ca”

The first element, fr, denotes the language of the document of page. The second element denotes the country. In this example, the country is Canada, ca, so the page’s content would be designed for French‐speaking Canadians. These are ISO language and country codes and can be found at https://www.w3schools.com/tags/ref_language_codes.asp.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *