Reply
Nested tables understanding open/close tags
Old 05-26-2006, 08:45 AM Nested tables understanding open/close tags
King Spam Talker

Posts: 1,069
I am trying to follow a php script that uses a a lot of nested tables. My question is when you have several opening table tags and then later you have a closing tag does the first </table> close the first <table> or the last.

Not the best wording there. Let's do it this way where the work content could be several lines long. Throw a few td's into the content section.

<table1> content <table2> content <table3> content </table?>

Which table is closed with the <table?> tag?


This confusing question is a great illustration of why not to do it this way.
colbyt is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 05-26-2006, 08:49 AM Re: Nested tables understanding open/close tags
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
table 3 gets closed the others remain open.

To nest tables you need something like

<table>
<tr><td>
<table> <tr><td></td></tr></table> // table 2
</td></tr>
<tr><td>
<table> <tr><td></td></tr></table> // table 3
</td></tr>
</table> // closes 1st table

Ibbo
__________________
www.nationalclubgolfer.com www.sportspub.co.uk www.bespokecc.co.uk www.centralmarquees.co.uk
Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Reply     « Reply to Nested tables understanding open/close tags
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12147 seconds with 13 queries