quiz: add x-default suggestion to design or develop multilingual (#405)

This commit is contained in:
Gustavo Iha 2024-01-01 21:33:24 -03:00 committed by GitHub
parent 032d32c146
commit 686899828b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ Designing and developing for multilingual sites is part of internationalization
- Use the `lang` attribute on the `<html>` tag.
- Include the locale in the URL (e.g en_US, zh_CN, etc).
- Webpages should use `<link rel="alternate" hreflang="other_locale" href="url_for_other_locale">` to tell search engines that there is another page at the specified `href` with the same content but for another language/locale.
- Use a fallback page for unmatched languages. Use the "x-default" value: `<link rel="alternate" href="url_for_fallback" hreflang="x-default" />`.
## Understanding the difference between locale vs language