Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website HTML First Use HTML Elements

Set the character set for this page.

I tried <meta charset= UTF-8>

But I'm getting error. Can anybody please help me on this.

11 Answers

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>```
<meta charset="utf8">```
If I understand your issue correctly, this should be inbetween your head tags. Make sure to type it in yourself, don't copy and paste, I don't know if that will cause an error or not.

Sloppy code, I know. What it should really be is:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

Sorry I'm not able to type the error. Can you please help me on this. TY.

Make sure to use the Markdown Cheatsheet (bottom right bold) to help you with posting your code.

But I typed with out ' ' ' it worked awesome. Thanks so much for your help.

Sorry, the three backticks were to display the code :) Great I'm glad it worked for you!

no spaces like this <meta charset="utf-8"> instead of this <meta charset = "utf-8">


How do i set the character set without html 5

<meta charset="utf-8">

<meta charset="utf-8">

<meta charset="utf-8"> Put a space between meta and charset only!!!!!

Hi, what does your code look like, and what is your error message please.