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

Kyle Scott
PLUS
Kyle Scott
Courses Plus Student 2,316 Points

Set Character

I am on task 4. and I am putting

 <meta charset ="utf-8"
<title> Kyle Scott | Baker </title>

What am I doing wrong? It say I need to set a meta character.

Kazimierz Matan
Kazimierz Matan
13,257 Points

Do you mean "Set the character set for the page." task in "Stage 2: HTML First" of "How to Make a Website"?

If you made first 3 tasks properly your code in challenge probably looks like below:

<!doctype html>
<html>
  <head>
  </head>
  <body>
  </body>
</html>

Now your task is to specify a character set (something like "iso-8859-1" or "utf-8"). To do this, in <head> section, you have to use <meta> element with "charset" property and setting its value to one of typical character set values (look into my previous sentence). Just put it together...

2 Answers

in the <head> you can try to type < meta charset="utf-8" > before the adding the title ( <title> )

Stone Preston
Stone Preston
42,016 Points

it looks like you forgot to close your meta tag, and you dont need to put a space between charset and the equal sign:

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