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 trialnoor khanabad
689 Pointshow i add a character set attribute for your meta tag.
what is the character set
<!DOCTYPE html>
<html>
<head>
<meta charset ="utf"-8>
<title> noor / writer </title>
</head>
<body>
<header>
<h1> Noor</h1>
<h2>designer</h2>
</header>
<section>
gallery will go here
</section>
<footer>
<p> © 2015 noor </p>
</footer>
</body>
</html>
3 Answers
Clint Rogers
869 PointsTry taking the space out between the "charset" and "=" see if that helps. also try "UTF-8"
Christian Andersson
8,712 PointsChange your code from:
<meta charset ="utf"-8>
to:
<meta charset="UTF-8">
So your error is that you are closing the quotation-marks too early and the spacing between charset and = might also be an issue.
To answer your question though about what charset is, this is how the W3 defines the charset:
To display an HTML page correctly, a web browser must know the character set used in the page.
Juan Aviles
12,795 PointsTake a close look at your double quotes, and keep in mind what has to go inside of them.
Clint Rogers
869 PointsClint Rogers
869 PointsTry taking the space out between the "charset" and "=" see if that helps.