I've just read the first two lines in your code
<table width="210">
<td align="center">
edit, since i kept reading lines:
wow. the whole thing is a mess.
for some direction, pass your html through a validator, and read each error from the results
https://validator.w3.org/#validate_by_input