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

Amil Boddie-Willis
Amil Boddie-Willis
9,661 Points

I'm having trouble with this code: <meta charset = "utf-8"> - It's for task #4 of 6, for the HTML First...

I can't figure out what is being asked when the error message keeps saying that I need to include an attribute...

1 Answer

Stone Preston
Stone Preston
42,016 Points

try not putting a space before and after the =. although your code is perfectly valid, sometimes the code challenges can be picky about syntax. most of the time with html tags and attributes you dont space out equal signs (you can, it just seems to be conventional that you dont)

<meta charset="utf-8">

also be sure you are putting this inside the head

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body></body>
</html>
Amil Boddie-Willis
Amil Boddie-Willis
9,661 Points

Whew - Thanks - That worked... P :)