Worst code ever

Robert Nyman is looking for examples of really ugly, invalid, broken code in Worst code you've ever seen?. Got something to show him? Did you write it yourself? That's even better!

Just for fun I had a look through my old archived stuff from the nineties. It wasn't quite as horrible as I was afraid it would be. But I did find this pretty piece of HTML:

  1. <TR><TD COLSPAN=2 BGCOLOR=999999>&nbsp;</TD></TR>
  2. <TR><TD BGCOLOR=999999 VALIGN=Top ALIGN=RIGHT WIDTH=8%><FONT SIZE=1 FACE="Geneva,Verdana,Arial"><B>Income</B>&nbsp;</FONT></TD><TD WIDTH=25% BGCOLOR=999999><FONT SIZE=1 FACE="Geneva,Verdana,Arial">

It goes on and on. Shame on me.

But I was wondering... what is the worst valid markup you have ever seen? I think valid code that blatantly disregards best practices is at least as insulting as invalid tag soup, so it would be interesting to see some examples.

Code posting tip: Indent each line in code blocks by four (4) spaces and you won't have to escape < and >. Keep lines reasonably short to avoid clipping.

Posted on February 14, 2007 in Quicklinks, (X)HTML