Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple html question

Status
Not open for further replies.

inusrat

Programmer
Feb 28, 2004
308
CA
Hi,
I just want to know which way is technically correct to put tables one after another (not side by side), or both ways are correct, bcz both produce the same results.


<body>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tr><td>Yes</td></tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tr><td>NO</td></tr>
</table>
</body>


<body>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td>
<table border="1"
width="100%"cellspacing="0"cellpadding="0">
<tr><td>Yes</td></tr>
</table>
</td></tr>
<tr><td>
<table border="1" width="100%" cellspacing="0"
cellpadding="0">
<tr><td>NO</td></tr>
</table>
</td></tr>
</table>
</body>


 
either, both, matters not from a HTML POV.

the only issue is the fact that nested tables ( the first example) soon become a real PIA when you need to change something.



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top