Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website HTML First Create the Content Containers

CAMILO ALMARZA
CAMILO ALMARZA
648 Points

I didnt understand what the <meta charset=..... is for

what is the <meta charset="uft-8"> for? or what does it does?

2 Answers

Different countries has different alphabets some with unique letters. Take Denmark for instance, we've three unique letters: "æ , ø , å". If I do not apply the correct character set that contains the three unique letters, my html document won't display them correctly when viewed.

Let me give you an example: If I delete the meta charset="utf-8" my ø will become an Ã. However, if I do write the meta tag that includes the charset="utf-8", the à will be displayed correctly as ø.

It's therefore an important file to include. As it's A) Used to determine which character set the document should use and B)How it should be displayed.

I hope it made sense.

CAMILO ALMARZA
CAMILO ALMARZA
648 Points

Thank you! very clear! I get it now!

charset=UTF-8 stands for Character Set = Unicode Transformation Format-8. It is an octet (8-bit) lossless encoding of Unicode characters.

You're pretty much telling HTML what kind of text it's expecting. Correct me if I am wrong, team.