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 trialsuhail sumra
152 Points<!DOCTYPE html>
Is it important to use the<!DOCTYPE html> tag I Mean Without It Cant I Develop A Website
3 Answers
Christof Baumgartner
20,864 PointsHi Suhail,
good question: yes, you can, but you shouldn't. The reason is, that this tag tells the browser that the page is html5. There are other versions of html, like html4, or xhtml. They will be interpreted differently. When you don't specify this doctype, the browser will guess which version you are using. Also some javascript-commands rely on the correct doctype at the beginning (I think, everything focussing on the whole page, like document).
suhail sumra
152 PointsOwh Thank You For Your Answer The Thing Is I Am 15 Years Old And I Have Started Coding(I Am A Beginner)...Anyways Thank You So Much For Helping Me Understand That.
Christof Baumgartner
20,864 PointsYou are welcome. This is a great age to learn coding. Have a good time :)
Christof Baumgartner
20,864 PointsBtw: Upvoting and marking answers as accepted is highly appreciated :)
suhail sumra
152 PointsUpvoting And Marking Answers???What is That??I DInt Understand
Christof Baumgartner
20,864 PointsNext to an answer, you see an up- and down-arrow. When an answer was helpful, you can click on the up-arrow. Then the number next to it will raise by one. When an answer explained everything you wanted to know, you can click on the button "Best Answer" below the answer, which will mark the answer as accepted.