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

what's wrong here?

Why it keeps saying I'm wrong on the set character part ?

<!doctype html> <html> <head> <meta charset="UTF-8"> <title></title> </head>

<body> </body> </html>

3 Answers

Holger Liesegang
Holger Liesegang
50,595 Points

Hi Lucas,

you want to use capital letters like

<!DOCTYPE html>

According to the W3 Working draft ( http://www.w3.org/TR/2008/WD-html5-20080610/syntax.html ) the doctype declaration is not case-sensitive, and should be valid if written as

<!DOCTYPE html>

or as

<!doctype html>

or even

<!DoCtYpE hTmL>

Issues can happen though if the web page is being parsed as XHTML - which will return an error if you don't use:

<!DOCTYPE html>

This is why it's simply best practice to use uppercase.

wow, that was a fast response. Thank you very much. I almost started to think that the software had a problem lol.