HTML5 metadata that is incredibly usefull!
This tutorial is going to cover some of the metadata you can include. It will include essential and incredibly useful metadata that will make your website stand out vs others. At the bottom of this tutorial, it will include a list of all of the metadata you could possibly include. Make sure to add opening and closing
<head> tags to inclose your metadata. Now, let's get started!
Here is a link to some country codes and language codes:
Although it's not completely considered metadata by some, include these two attributes to your
html tag at the start of your document:
lang attribute has the language used on the website. Use the language code followed by a hyphen and your country code. Currently, the langauge is set to English, Canadian. Some codes include, but are not limited to:
- en-CA | English Canadian
- en-US | English United States of America
- fr-CA | French Canadian
- fr-FR | French France
Check out these websites for the a full list of language and country codes: https://www.w3schools.com/tags/ref_language_codes.asp
The second attribute of
dir is the direction of the sentences on the website.
ltr means left-to-right.
rtl would mean right-to-left.