Conditional Comments


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

Make sure to refer to the above url for a more complete summary of how it works.


Copy this code and paste it in your HTML
  1. <!--[if IE 6]>
  2. <p>You are using Internet Explorer 6.</p>
  3. <![endif]-->
  4.  
  5. <!--[if !IE]><!-->
  6. <p>You are not using Internet Explorer.</p>
  7. <!--<![endif]-->
  8.  
  9. <!--[if lte IE 6]>
  10. lt = less than
  11. lte = less than or equal to
  12. gt = greater than
  13. gte = greather than or equal to
  14. <![endif]-->
  15.  
  16. <!--[if expression]> HTML - Downlevel hidden <![endif]-->
  17.  
  18. <![if expression]> HTML - Downlevel revealed <![endif]>

URL: http://reference.sitepoint.com/css/conditionalcomments

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.