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 trialsaad
26,165 PointsDifference between <!Doctype html> and <html> tags?
Hi Guys,
What is the difference between <!Doctype html> and <html> tags?
Thanks!
2 Answers
Dino Paškvan
Courses Plus Student 44,108 PointsAn <html>
tag is a root element, holding all the content of an HTML document, and it also tells the browser that you're using HTML.
The <!DOCTYPE>
tag tells the browser which version of HTML you're using.
saad
26,165 PointsThank you :-)