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 Use HTML Elements

Add a character set

In answer to the question, I am adding the code demonstrated in the video:

<meta chartset="utf-8">

But I get a failed response:

"Remember to add a character set attribute for your meta tag."

I don't see what I'm doing wrong here?

3 Answers

Roberto Grasso
Roberto Grasso
5,752 Points

I had a similar problem but I didn't misspell the word "charset". In the video class, the teacher instructs you to place a space in between the charset, =, and ". However, I had to remove the spaces in the quiz to make it work. That does not seem logical.

That's what muse happened to me! Ugh, super frustrating. Thanks for writing this--I removed the space and it worked fine.

The following code shows how to add a char set to the page

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
  </head>
  <body>
  </body>
</html>

Thanks man,

I'm an idiot, I was misspelling 'charset'

Haha typos cause me so much stressing it's untrue, even after reading over it several times so hard to spot :)