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 trialKyle Garcilazo
1,926 PointsHow to write an HTML doctype
html:
4 Answers
egaratkaoroprat
16,630 PointsHey Kyle
For HTML 5 it is simply (should be at the beginning of your HTML document):
<!DOCTYPE html>
Victor Horton
20,277 PointsDon't forget to put <html> directly under the type and end the page with </html>
Fernando Carlini
6,349 Points<!DOCTYPE html> --> this declaration donΒ΄t have an closing tag as others. It must be at the top of the document.
Paula Mourad
5,154 PointsHello Kyle! It's very simple:
<!DOCTYPE html>
<html>
<!-- Here you start with your head, then body elements-->
</html>
```
Kyle Garcilazo
1,926 PointsKyle Garcilazo
1,926 Pointsok cool,thanks.