All language subtitles for 001 Title and Meta Tags_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

With the featured review displayed

on the HomePage,

our website is almost ready to go live.

But there are still a few details

we want to sort out.

For a start, our pages are missing a title.

You can see that the browser

tab just displays the URL,

because there's no "title" tag on this document.

Let's use the Chrome Developer

Tools to inspect the Elements.

If we look at the document "head"

there is no "title" tag inside here.

So, let's see how we can set a title for our page.

Since it goes inside the "head"

of the HTML document,

we cannot simply add it to

the existing JSX elements,

because those are rendered inside

the "body" of the document.

Instead, when using Next.js with the App Router,

we can export a constant called "metadata".

This is an object were we can set additional

properties for this page.

And one of these properties

is in fact the "title".

Let's set it to "Indie Gamer",

that's the name of our website.

And if we save,

we can see that the browser shows

"Indie Gamer" as the tab name.

That value is set based on the "title"

tag in the document "head".

You can see that we do have a "title" tag now.

And, by the way, this will also

be used by search engines

when indexing our pages.

It's important to set a "title" on each page,

for Search Engine Optimization.

Now, the "metadata" object can contain

other properties as well,

such as a "description" for example.

This is another value that will

be used by search engines.

I'll just copy the tagline as the description.

And if we save this change,

we'll need to look at the HTML elements to see it,

but here's the "meta" tag with the "description".

You can see that the "content" attribute has

the value we set in our code.

Now, there are a number of "meta"

tags you can set on a page,

and there's a corresponding property

in the "metadata" object

for each one of them.

To keep things simple,

we'll only set the "title" in our pages.

But you can check the Next.js documentation

to see all the possible properties

you can set in the "metadata".

Many of them are useful for SEO,

like the "keywords" meta tag for example.

Others, like the "colorScheme",

allow us to customize the appearance of our app.

This example is not the full list,

there are actually many more fields you can set.

Another useful one is "openGraph" for example.

This is used if somebody posts a link

to your website on Facebook,

or other social networks.

The "openGraph" properties will be

used to generate a preview card

for the page shared as a link.

Here you can include things like

an image and a description.

"openGraph" also works for Twitter,

although Twitter also has its own slightly

different way of doing the same thing,

which is why there's a separate

property for "twitter" here.

Anyway, I won't go through all the possible

metadata configuration options,

because there are just too many of them.

But you can check this page if you're interested.

Some of the properties are standard meta tags,

defined by the HTML specification,

like "keywords", that I mentioned earlier.

And many of these are used by search engines.

So, if you want to improve the

chances of your website

showing up in Google's search results for example,

you can read this page where it explains

which meta tags are supported by Google.

You'll find the link in this lecture's Resources.

But, at a minimum, we should

set a "title" on each page,

and we can do that by exporting

this "metadata" object.

The way I think of it is that

"metadata" here really means "meta tags",

and other tags that go in the document "head",

like the "title".

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.