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 trialNicollette Whitfield
4,526 Points<meta charset="utf-8> What does this mean or what does it do? I deleted it from the code and nothing changed?
I copy it from teachers notes back into the code and again nothing changed.??? I don't understand this. Can you please explain this line?
2 Answers
michael mead
7,205 PointsThe "meta" is info in the head. charset = character set utf-8 is character encoding capable of encoding all characters on the web. It replaced ascii as the default character encoding. Because it is the default all modern browsers will use utf-8 without being explicitly told to do so. It remains in meta data as a common good practice. Until the powers that be (unicode consortium) decide not to use it. utf-8 is used for something like 93% of all web traffic. long story short: leave it in.
Nicollette Whitfield
4,526 PointsThanks Tobias. The second explanation and the visual were helpful.
Nicollette Whitfield
4,526 PointsNicollette Whitfield
4,526 PointsSo because the modern browser will use utf-8 the preview will remain unchanged whether it is is there or not..... I will definitely take your advise and left it in. Thanks for the quick response