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

In the HTML First Stage, how do you add a character set attribute for your meta tag?

I typed: <meta charset= "utf-8"> and it's still requesting I include the character set? Can you please assist?

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset= "utf-8">

  </head>
  <body>
  </body>
</html>
Neftali Mendez
Neftali Mendez
6,226 Points

<head> <meta charset="UTF-8"> </head>

3 Answers

Hi Patrice,

The issue is the space after the =. Remove this and you should be sorted :)

So:

<meta charset= "utf-8">

will become:

<meta charset="utf-8">

Hope that helps.

-Rich

Josip Dorvak
Josip Dorvak
18,126 Points

Your browser probably cached a version of your project before you added the meta tag. I would clear your browsers cache and re-run your program and check if you're still getting the same warning

Thank you so much for all of your support!!!

No problem :) Hope it helped!