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 Build Structure

kabir k
PLUS
kabir k
Courses Plus Student 18,036 Points

Writing the document type element like this: <!doctype html>

I have seen some document type elements written like this:

<!doctype html>

instead of

<!DOCTYPE html>

Does it matter how it is written? If yes, why?

3 Answers

Greg Kaleka
Greg Kaleka
39,021 Points

Nope - doesn't matter! Check out the "tips and notes" section here:

http://www.w3schools.com/tags/tag_doctype.asp

Elad Edri
Elad Edri
5,971 Points

It doesn't matter, that's true, but by convention it is customary to use caps on the <!DOCTYPE>, and this is a good habit to follow conventions.

how to type exclamation mark on keyboard

Greg Kaleka
Greg Kaleka
39,021 Points

Hi Nikhil,

A typical QWERTY keyboard, used in the US (the letters QWERTY are the first six letters on this keyboard layout), has the exclamation mark on the 1 key. To get an exclamation mark, you would hold down Shift while you hit the 1 key.

If you're not on a QWERTY keyboard, it may be different. I strongly suggest taking a keyboarding class if this is difficult for you. You will have a very hard time with programming if you can't find the keys you need for letters, brackets, punctuation, etc.

Good luck! :thumbsup:

-Greg