Re: Identifying end tags

Nickolas Nansen wrote:
> Working with nested tables,

There is rarely a legitimate need for nested tables, unless you're 
abusing tables for layout.

> div tags and other elements may cause problems when combining code 
> and especially when there will be different levels of nesting.

If there are really that many that you can't keep track of, then that 
probably indicates you've used far too much redundant markup.

  It's not always easy to keep track of how many div's to end at the
> end of the local code and there is a potential risk of making problems for
> the framing code. Because of this I would like to know if there is or could
> be made an attribute used by programmers to keep track of the tags.

No, XML syntax does now allow attributes to appear on end tags.

> <div id="design">
> <div id="content">
> <div id="maincontent">
> <div id="related">
>             Content
> </div>
> </div>
> </div>
> </div>

Is there really a need to nest that many divs inside each other?

> With comments
> <div id="design">
> <div id="content">
> <div id="maincontent">
> <div id="related">
>             Content
> </div><!--/related-->
> </div><!--/maincontent-->
> </div><!--/content-->
> </div><!--/design-->
> 
> With attributes
> <div id="design">
> <div id="content">
> <div id="maincontent">
> <div id="related">
>             Content
> </div id="related">
> </div id="maincontent">
> </div id="content">
> </div id="design">

What makes the comments harder to use than your proposed end-tag attributes?

-- 
Lachlan Hunt
http://lachy.id.au/

Received on Friday, 23 June 2006 08:06:08 UTC