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 trialTodd Ferreira
3,192 PointsDefining 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
Jason Anello
Courses Plus Student 94,610 PointsHi Todd,
Replace the underscore with a space.
Kai Aldag
Courses Plus Student 13,560 PointsYes actually. The doctype and html should be seperated. So it would look like this
<!DOCTYPE html>
Todd Ferreira
3,192 PointsHuh. 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!
Kai Aldag
Courses Plus Student 13,560 PointsNo problem :)
truemaulik
Courses Plus Student 7,765 PointsIt should be like this :
<!DOCTYPE html>