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
Kris Jolls
5,157 PointsChoosing a DOC TYPE.
When using a little of everything from HTML and html5 and CSS and css3 etc. how do you go about choosing the correct doc type?
I'm validating a site and can't seem to find a doc type the validator agrees with.
7 Answers
Alex Hedley
16,381 Points<!dOctyPE html>
<html lang="en">
...
</html>
James Barnett
39,199 PointsWhat validator are you using?
<!DOCTYPE html>
Kris Jolls
5,157 PointsW3c. So I need not be concerned with choosing transitional etc anymore?
Enrique de Larrazabal
3,595 PointsJust use this:
<!doctype html>
If there's a problem with the validator check your markup, sorry to sound harsh but it's probably your fault.
John Locke
9,450 PointsUse the following link to validate HTML5, not the regular W3C validator.
OR
Kris Jolls
5,157 PointsThanks. I'm just used to using the old transitional doctype etc. I understand the purpose of validating and checking the code lol.
James Barnett
39,199 Points@John - Woah I didn't know about the W3C validator that used the nu engine, awesome