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

Todd Ferreira
Todd Ferreira
3,192 Points

Defining HTML doctype

I am at the challenge in the Front-end web development track where I am being asked to 'write an HTML doctype'. In the test area I have written <!DOCTYPE_html> and the site does not recognize this as a correct answer. Am I missing something? What exactly is it asking? Why is this not correct?

4 Answers

Hi Todd,

Replace the underscore with a space.

Yes actually. The doctype and html should be seperated. So it would look like this

<!DOCTYPE html>

Todd Ferreira
Todd Ferreira
3,192 Points

Huh. Thanks. I totally messed that up. I dont know why but I swear the video said add an underscore separating the DOCTYPE and html. Weird. But I was totally wrong. Thanks!

No problem :)

It should be like this :

<!DOCTYPE html>