Posted By

chrisjlee on 02/17/11


Tagged

html


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

JoF
chrisjlee
ellenoneill


HTML5 Conditional IE Class Sniffer


 / Published in: HTML
 

Enjoy.

  1. <!--[if IE 6]><!-- disable doctype in ie6 --><![endif]--><!doctype html>
  2. <!--[if lt IE 7]><html lang="en" class="ie ie6 lte9 lte8 lte7"><![endif]-->
  3. <!--[if IE 7]><html lang="en" class="ie ie7 lte9 lte8 lte7"> <![endif]-->
  4. <!--[if IE 8]><html lang="en" class="ie ie8 lte9 lte8"><![endif]-->
  5. <!--[if IE 9]><html lang="en" class="ie ie9 lte9"><![endif]-->
  6. <!--[if gt IE 9]><html lang="en"><![endif]-->
  7. <!--[if !IE]><!--><html lang="en" class="not-ie"><!--<![endif]-->

Report this snippet  

You need to login to post a comment.