Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: Identifying end tags

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 23 Jun 2006 18:05:49 +1000
Message-ID: <449BA0DD.3040003@lachy.id.au>
To: Nickolas Nansen <nick_nansen@hotmail.com>
CC: www-html@w3.org

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 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.