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

Character set

I am trying to set the character type for the treehouse quiz. I am writing:

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

I keep getting an error. Does anyone know why?

Stone Preston
Stone Preston
42,016 Points

you must format html using markdown if you want it to show up in the forum. Ive formatted your code for you so it will show up. You can watch the tips for asking questions video on the right side of the page for an explanation of formatting code using markdown. There is also a markdown cheatsheet in the bottom right corner of the text box.

2 Answers

Stone Preston
Stone Preston
42,016 Points

looks like the engine didnt like the way you used spaces before and after the equals sign. I passed with

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

it shouldnt matter, but the challenge engine can be very picky sometimes. In HTML and CSS, most people dont put a space before and after the equals sign like you see in other languages.

James Barnett
James Barnett
39,199 Points

This should be reported as a bug, I tested your markup and it validates, so that means it is valid HTML

There's a submit feedback button at the end of every code challenge where you can tell the Treehouse team about any issues you ran into when working on a code challenge. You can also email help@teamtreehouse.com to let them know about any issues you have with a code challenge.