Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Nested tables understanding open/close tags
Old 05-26-2006, 08:45 AM Nested tables understanding open/close tags
Defies a Status

Posts: 1,606
Trades: 0
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

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
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
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.09706 seconds with 12 queries