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 trialCAMILO ALMARZA
648 PointsI didnt understand what the <meta charset=..... is for
what is the <meta charset="uft-8"> for? or what does it does?
2 Answers
Rasmus Brokhattingen
6,108 PointsDifferent 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.
Wadson Fleurigene
493 Pointscharset=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.
CAMILO ALMARZA
648 PointsThank you Wadson!!
CAMILO ALMARZA
648 PointsCAMILO ALMARZA
648 PointsThank you! very clear! I get it now!