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 trialAlex Gasick
93 PointsDefining an HTML doctype tag
How do you define an HTML Docytype tag?
I'm taking the code challenge, and have inserted <!DOCTYPE html> when asked to write an HTML doctype, and I keep getting this error message that I must define the HTML Docytype tag. How do I do that?
9 Answers
Bradley Bensen
3,833 PointsMake sure none of your other tags are open either
Bradley Bensen
3,833 PointsMake sure none of your other tags are open either
Bradley Bensen
3,833 PointsMake sure none of your other tags are open either
Bradley Bensen
3,833 PointsMake sure none of your other tags are open either
Bradley Bensen
3,833 PointsMake sure none of your other tags are open either
Marcos Vinicius Gouvea
1,677 Pointsdid you close the tag too ? <!DOCTYPE html> </html>
qdzfplofsk
22,025 Pointsspeaking o doctype. I see some sites with CAPS for doctype and the charset meta tag UTF-8.
Is there anything wrong with doing all lowercase like the rest of the tags so like: <!doctype html>
Alex Gasick
93 PointsI'm all good now. Thanks everyone
Alice Tribuleva
3,247 PointsSumming up a few points: The DOCTYPE declaration doesn't need a closing tag (technically, it's not a tag, it is a Document Type Declaration). In HTML, you may use it in lowercase as well, but it indeed is case-sensitive, so beware.