Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website HTML First Use HTML Elements

How do I write an html doctype?

I'm stuck on this challenge. I need more clues.

Jacqui Damore
Jacqui Damore
2,074 Points

in your index.html file write - <!DOCTYPE html>

4 Answers

Eddie Solar
Eddie Solar
20,453 Points

<!DOCTYPE html> for HTML5

Eric Breuers
PLUS
Eric Breuers
Courses Plus Student 19,270 Points

First, where is the doctype located in an HTML document?

Is it at the top of the page, the middle (in the body) or at the bottom of the page?

Once you've figured that out, right click and view source on a web page (this one will do) and look for the doctype. This page will have an HTML5 doctype which is probably what your challenge is asking for :)

I wasn't using all caps, thanks all.