I\'ve always wondered whether whitespace before a DOCTYPE matters, but I can\'t seem to find any definitive information on the web. People say not to do it,
Yes! comments and spaces may come first.
Here's the relevant section from the official HTML Specification