A minor issue, as this is something easily done wrong ... in which case it might take forever to find the error.
Don't you just hate it when you can't figure out why somet'ing ain't workin', and afterwards you know it was a really small thing you have overlooked and overlooked again.
The doc type declaration is the first line and tells a browser what type of docement the file is. All the proper declarations and lots more can be found at W3C.
Be aware that the doc type declaration is case sensitive. This is easily done wrong!
Read a bit more about the W3C at their own site and you'll see why that's a very useful site. Whether for docs, tutorials or online validators.
The doc type declaration is not required in all browsers, but if you use it, be sure to use the right upper/lowercase. I would strongly advice to always use declarations and always validate your html.
Sloppy (careless/dirty) code might work just for now or in specific browsers, but you won't find out it's sloppy until you validate your code. Meaning that if you don't validate it, at any point in the future something might just stop working (in any or all browsers) without a clear reason. It'll take you forever to find the error. Needless to say this is very frustrating and a total waste of time. Spend just a little more time now, so that you KNOW that all used html code is valid and complete. A nice place to start at W3C is http://validator.w3.org/
Edited by Croco Dylan