Learn to Code via Tutorials on Repl.it!

← Back to all posts
HTML5 metadata that is incredibly usefull!
RayvelArjoon

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:
https://www.w3schools.com/tags/ref_country_codes.asp
https://www.w3schools.com/tags/ref_language_codes.asp

Although it's not completely considered metadata by some, include these two attributes to your html tag at the start of your document:

The 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:

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.

Voters
CaptainWaheed
Onyxi
frissyn
DexieTheSheep
Codemonkey51
RayvelArjoon
Comments
hotnewtop
rxphasource

FLAGGING TO SEE 2DAY LATER

RayvelArjoon

@rxphasource What do you mean?

Codemonkey51

Cool!