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

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,455 Points

<!DOCTYPE html> for HTML5

Eric Breuers
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.