I have a site that I built for a client who has rudimentary html knowledge that he wants to use to make updates himself. I don't like this because it messes up my nice clean valid code. He just made his first updates today and the html is appalling. I went to check to see just how bad the code was and came across something that I found hilarious. This. Validates.
(Modified to protect the guilty and shortened for your convenience)
No <html> tags, no <head> tags, no <body> tags, not one <tr> closed, not one <td> closed, align attribute given without quotes. Isn't it wrong to have two <th> tags in one table? I know capitalizing the ALIGN is only wrong in xhtml but it just looks so wrong to me.Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <title></title> <table> <tr> <th ALIGN=center colspan="4">Name of Event <tr> <th ALIGN=center colspan="4">Points Standings <tr> <td>Division <td> <td> <td> <tr> <td ALIGN=center>Pos. <td ALIGN=center># <td>Name <td ALIGN=right>Points <tr> <td ALIGN=center>1. <td ALIGN=center>444 <td>Name One <td ALIGN=right>156 <tr> <td ALIGN=center>2. <td ALIGN=center>118 <td>Name Two <td ALIGN=right>140 <tr> <td ALIGN=center>3. <td ALIGN=center>352 <td>Name Three <td ALIGN=right>140 <tr> <td ALIGN=center>4. <td ALIGN=center>100 <td>Name Four <td ALIGN=right>108 </table>
To all Americans here and abroad Happy Thanksgiving!










Bookmarks