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

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.