HTML5 Conditional IE Class Sniffer


/ Published in: HTML
Save to your folder(s)

Enjoy.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.