Html – the best HTML for displaying an ‘Upgrade your browser’ banner on your website?


What is the best piece of HTML to put into your website informing certain browser's users that they should upgrade to a different browser?

Best Solution

As far as I am aware, only IE recognizes conditional & targeted commenting done by:

<!--[if lte IE 6]>
<div id="upgrade"><span>Like a growing number across the Web, this site no longer supports Internet Explorer 6 and your viewing experience may be affected. We recommend that you download the latest stable release of <a href="">Internet Explorer 7</a> free of charge by <a href="">clicking here</a>.</span></div>


Related Question