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

Having trouble setting the character set for the page

I can't seem to recall the proper syntax on how to set the character set, can any one help?

index.html
<!DOCTYPE HTML>
<HTML>
 <HEAD>

   <META=CHARCODE=UTF-8>

  </HEAD>

 <BODY>

  </BODY>



</HTML>

1 Answer

Thomas Fildes
Thomas Fildes
22,687 Points

Hi Matthew,

You set the character set using the code below:

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

Also, I would advise you to write out your tags in lowercase rather than uppercase because it is easier to read and is more commonly used amongst developers.

Happy Coding!