Elmpowered with elm trees on your side, you can do anything


First, there was DOCTYPE…

Per W3 HTML doctype declaration,

The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the <html> tag.

 Remembering that can save you quite a number of headaches.

I've been developing a Website using Django and Twitter's Bootstrap CSS library. After my HTML templates were rendered, an HTML comment, not the DOCTYPE declaration, ended up as the first line. I didn't catch the oversight at first, as the pages rendered correctly in Chrome and Firefox. Internet Explorer, however, was a completely different story.

Easy enough to fix, as long as you know where to look.