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
Andrew Booth
1,578 PointsDid you know that DOCTYPE is NOT case sensitive?
I just found out today and it's super interesting!
<!DOCTYPE html>
and
<!doctype html>
2 Answers
Steven Parker
243,228 PointsActually, the complete official specification is:
8.1.1 The DOCTYPE
A DOCTYPE is a required preamble.
A DOCTYPE must consist of the following components, in this order:
- A string that is an ASCII case-insensitive match for the string "<!DOCTYPE".
- One or more ASCII whitespace.
- A string that is an ASCII case-insensitive match for the string "html".
- Optionally, a DOCTYPE legacy string.
- Zero or more ASCII whitespace.
- A U+003E GREATER-THAN SIGN character (>).
And tag names and attributes are also case-insensitive, but "best practice" is to use caps for DOCTYPE and lower-case for tag names and attributes.
Andrew Booth
1,578 PointsWhat is your favorite programming language?
Steven Parker
243,228 PointsTough call. I'm a long-time fan of C, but I recently learned GO (here) and think it's very cool.
Andrew Booth
1,578 PointsAndrew Booth
1,578 PointsIt was meant to be a fun facts thing......
I did not need the full official specification list.
Steven Parker
243,228 PointsSteven Parker
243,228 PointsI had fun looking up the specs.
And I'd bet most folks didn't know about the tags and attributes being case insensitive, too.