We’ve already shown you why so many geeks hate Internet Explorer, and since it’s almost Halloween we figured we’d show you something really scary—how to crash any version of Internet Explorer with nothing more than HTML and CSS.

Note: we’re really not trying to bash on Internet Explorer—in fact, the latest beta version is really quite nice, but we figured we’d have some fun with this bug, and maybe somebody at Microsoft will fix this problem before the final release.

How to Crash Internet Explorer with HTML

Simply open up notepad or another text editor, paste in the following, and save it as SomeFilename.html.

<style type="text/css">
#a {
        margin:0 10px 10px;

#b {

<title>IE Crasher</title>
<div id="a">
<form id="b">
<input type="text" name="test"/>
</td><td width="1"></td></tr></table>

It should end up looking something like this:

Then open it up in Internet Explorer, and BOOM! IE is dead.

Note: hilariously, when I originally put this HTML code into the article, it actually crashed Windows Live Writer repeatedly. Finally had to login to WordPress and remove the code from there in order to be able to even open up the post again.

Where Does This Work?

We’ve tested this out, and it seems to crash just about every single version of IE, from IE6 even up to the latest Internet Explorer 9 platform preview that was released earlier today.


It’s at this point that we should point out that we didn’t figure this out—in fact, there’s a web site that you can visit that will crash IE, and we got the source code from that site.


Please share this link responsibly.

Profile Photo for Lowell Heddings Lowell Heddings
Lowell is the founder and CEO of How-To Geek. He’s been running the show since creating the site back in 2006. Over the last decade, Lowell has personally written more than 1000 articles which have been viewed by over 250 million people. Prior to starting How-To Geek, Lowell spent 15 years working in IT doing consulting, cybersecurity, database management, and programming work.
Read Full Bio »