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

Allison Vaughn
Allison Vaughn
258 Points

<meta charset= "utf-8">

It' s contained within the header of a very simple html page. Why does it say I still need to add an attribute?

9 Answers

Allison Vaughn
Allison Vaughn
258 Points

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

Here' s what I have. I get a "bummer" message.

Allison Vaughn
Allison Vaughn
258 Points

Hi Scott! Nope. It wasn't in CAPS.;) it was in the header, and claims I need an attribute.

Caleb Davis
Caleb Davis
840 Points

I'm having the same exact issue. I've tried every possible alternative I can think of and it still wont work. HELP.

In "Header" do you mean <head></head> or <header></header>? the first one is correct

well it cut out sections of code i typed... do you mean head or header elements? it should be in the head element.

Scott Moore
Scott Moore
4,050 Points

Hey Allison, just to make sure I am clear. You are not trying to put it into a header but the head of the document. There is a difference. A header is a way to identify items used in markup and appears in browser screen. Items in the head are for the browser to read and do not appear on screen. Here is a basic blank markup of what it should look like.

http://codepen.io/freightguy/pen/LBogc

Allison Vaughn
Allison Vaughn
258 Points

So sorry for the confusion. It's in the head of the doc, not a header in the body. I need to before precise with what I'm saying. I have it set up on my own page and it all works fine, but isn't on the code challenge. I'm just trying to progress to the next element.:)

Scott Moore
Scott Moore
4,050 Points

HMMM, weird. I just went back and redid it. Worked fine on my end. Not sure what's happening. Sometimes you have to refresh the page which I am sure you already did. If you cant get it worked out, maybe a mod will chime in. Good luck!! :)