| Note that <html> and <body> auto-close and don't need to be terminated. Also, wrapping the <head> tags in an actual <head></head> is optional. You also don't need the quotes as long the attribute doesn't have spaces or the like; <html lang=en> is OK. (kind of pointless as the average website fetches a bazillion bytes of javascript for every page load nowadays, but sometimes slimming things down as much as possible can be fun and satisfying) |
What this achieves is making the syntax more irregular and harder to parse. I wish all these tolerances wouldn't exist in HTML5 and browsers simply showed an error, instead of being lenient. It would greatly simplify browser code and HTML spec.