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

HTML How to Make a Website HTML First Use HTML Elements

Rekha Iyengar
seal-mask
.a{fill-rule:evenodd;}techdegree
Rekha Iyengar
UX Design Techdegree Student 9,170 Points

How do you Define the html doctype tag I wrote <!DOCTYPE html>

How do you Define the html doctype tag I wrote <!DOCTYPE html>

index.html
  <! DOCTYPE html>
  <html></html>

2 Answers

andi mitre
STAFF
andi mitre
Treehouse Guest Teacher

Hey Rekha, very close

<!DOCTYPE html>
<html>
</html>
Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

With some things, whitespace is very important.

You're on the right track, you just can't have a space between the ! and DOCTYPE

<!DOCTYPE html>

Jason :)