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 trialOmar Zeidan
8,893 PointsThe right DOCTYPE
Hello, Is there any problem if I used the html5 DOCTYPE even if I did`t use any of the new html tags?
Note : I wanted to make my web page working on old browsers too.
3 Answers
James Barnett
39,199 PointsYep, use <!DOCTYPE html>
for everything.
Omar Zeidan
8,893 PointsJames Barnett , Thank you so much for that.
But just to make sure, even if I needed my web page to work on IE6, IE7 , is that okay to use the <!DOCTYPE html>
?
James Barnett
39,199 PointsYep, write good markup and check it out in IE6 and see how it looks.
Omar Zeidan
8,893 PointsYes, it works probably.
Appreciated, I JUST wanted to make sure that it is right to use the <!DOCTYPE html>
because some told me it is better to use a non html5 Doctype if your markup has no html5 tags, and since I trust the "Treehouse school" so I ask my questions here :)
Tom Bedford
15,645 PointsHave no fear, James is 100% correct.