Antiquated CSS and why we needed it 0 ▲ Max Glenister 1 hour ago · 12 min read2318 words · Tech · hide · 0 comments I came across a catalogue of antiquated HTML snippets and artefacts, the kind of markup we just accepted as necessary in the <head> of every site. It got me thinking about the CSS side of that same period, the stylesheets rather than the markup. My first job in 2009 was building marketing campaign pages for an electronics distributor’s B2B storefront, where dropping IE6 was not a conversation anyone was going to have. Developers eventually landed on one clean way to target different IE versions, but getting there took a lot of less elegant detours. The clean way to target IE HTML5 Boilerplate launched in 2010 with conditional IE classes on the <body> tag, then later moved the same idea up to wrap the whole <html> tag instead: <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]--> <!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"><![endif]--> <!--[if IE 8]><html class="no-js lt-ie9"><![endif]--> <!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]--> That gave you a… No comments yet. Log in to reply on the Fediverse. Comments will appear here.