Tag usage of local contents
Here are some examples of tag usage for local content:
1. lang
attribute:
<html lang="en-US">
- specifies the language of the HTML document as English (United States)<html lang="fr-FR">
- specifies the language of the HTML document as French (France)
2. dir
attribute:
<html dir="ltr">
- specifies the text direction as Left-To-Right (LTR)<html dir="rtl">
- specifies the text direction as Right-To-Left (RTL)
3. hreflang
attribute:
<a hreflang="en" href="https://example.com">English version</a>
- specifies the language of the linked page as English<a hreflang="fr" href="https://example.com/fr">Version française</a>
- specifies the language of the linked page as French
4. rel
attribute:
<link rel="alternate" hreflang="en" href="https://example.com/en">
- specifies an alternate version of the page in English<link rel="alternate" hreflang="fr" href="https://example.com/fr">
- specifies an alternate version of the page in French
5. meta
tags:
<meta charset="UTF-8">
- specifies the character encoding of the HTML document as UTF-8<meta name="viewport" content="width=device-width, initial-scale=1.0">
- specifies the viewport settings for mobile devices<meta name="geo.position" content="48.8567; 2.3522">
- specifies the geographic location of the page
6. title
attribute:
<title>English version of the page</title>
- specifies the title of the HTML document in English<title>Version française de la page</title>
- specifies the title of the HTML document in French
7. xml:lang
attribute:
<html xml:lang="en">
- specifies the language of the HTML document as English<html xml:lang="fr">
- specifies the language of the HTML document as French
These are just a few examples of the many tags and attributes that can be used to specify local content. The specific tags and attributes used will depend on the requirements of the project and the target audience.