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

The quiz asks me to set the character for the page. I have <head> <meta charset = "utf-8"> <title>

Why is this question not going through

Ken Alger
Ken Alger
Treehouse Teacher

Anas;

Welcome to Treehouse!

Can you post the code you are using in the challenge? It is probably something minor that is causing the issue, like a closing tag, etc.

You can see how to post code in the forum on this post.

Ken

6 Answers

cecil merrell
cecil merrell
6,873 Points
<head>
<meta charset="UTF-8">
</head>

must be between the head tags and no spaces between the "="

try that

cecil merrell
cecil merrell
6,873 Points

you must have the meta tag inside of the head tag. Like this.

<head>
    <meta charset="utf-8">
    <title>Page Title Goes Here</title>
</head>

Do not forgot about closing tags.

Herb Bresnan
Herb Bresnan
10,658 Points

Not sure if this is what you need. Try copying and pasting your actual input so we can better see what the issue you are having. Anyway, hope this helps. Good luck.

<!DOCTYPE html> <html> <head> <title>How to make a website</title> <link rel= "stylesheet" href= "css/main.css"> <meta charset= "utf-8"> </head>

Hey guys

so the quiz says : Set the character set for the page.

I put in

<!DOCTYPE html> <html> <head> <meta charset ="utf-8"> <title>Hassan Chaudhry || cool dude</title> </head>

and i get : Bummer! Remember to add a character set attribute for your meta tag.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Anas;

Typically you don't want to remove items from task to task in the challenges, so while you have the correct syntax for the charset property, you need to make sure nothing else has changed from previous tasks. Your code at the end of Task 4 needs to look similar to:

<!DOCTYPE html> <!-- Task 1 -->

<html> <!-- Task 2 -->

  <head> <!-- Task 3a -->
      <meta charset="UTF-8"> <!-- Task 4 -->

  </head> <!-- Close of Task 3a -->

  <body> <!-- Task 3b -->
  </body>  <!-- Close of Task 3b -->


</html> <!--Close of Task 2 -->

Make sense?

Happy coding,

Ken

Thanks guys

removing the title from header and having no blank spaces solved the problem.