ice78991
Programmer
- Nov 20, 2006
- 216
I've been reviewing the following html code
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" COLS="1" WIDTH="98%">
<TR>
<TD>
<CENTER><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" COLS="1" WIDTH="98%">
<TR>
<!--- <TD> HAS BEEN OMITTED HERE...WHY? --->
<CENTER><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
<TR>
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="4" COLS="2" WIDTH="100%">
ETC ETC
There is obviously a lot of nesting here !
My question is why has the author omitted a <td> tag before the <center> on the 8th line
I have been playing about with this omission and have had some unusual results. Can anyone explain what the difference is or is it simply that it is an error to leave out the <td> ? Is it advisable to use the <center> tag
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" COLS="1" WIDTH="98%">
<TR>
<TD>
<CENTER><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" COLS="1" WIDTH="98%">
<TR>
<!--- <TD> HAS BEEN OMITTED HERE...WHY? --->
<CENTER><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
<TR>
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="4" COLS="2" WIDTH="100%">
ETC ETC
There is obviously a lot of nesting here !
My question is why has the author omitted a <td> tag before the <center> on the 8th line
I have been playing about with this omission and have had some unusual results. Can anyone explain what the difference is or is it simply that it is an error to leave out the <td> ? Is it advisable to use the <center> tag