HighDots Forums  

Consider allowing optional argument for closing div tag

alt.html.tags alt.html.tags


Discuss Consider allowing optional argument for closing div tag in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Frank Spade
 
Posts: n/a

Default Consider allowing optional argument for closing div tag - 01-05-2008 , 12:58 PM






It would be helpful to me, and maybe to others as well, if it were valid to
specify an optional argument for a closing div tag (and maybe others as
well), i. e.
<div id="header">
....
</div id="header">

That way it is easier to see the intended structure.

I know I could simulate this like:
</div><!-- id="header" -->
but consider it not as elegant as my suggestion.

How do others feel about this or has this been talked to death already
without me noticing?



Reply With Quote
  #2  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: Consider allowing optional argument for closing div tag - 01-12-2008 , 02:49 PM






Gazing into my crystal ball I observed "Frank Spade" <news (AT) teampc (DOT) com>
writing in news:floggo$ip4$03$1 (AT) news (DOT) t-online.com:

Quote:
It would be helpful to me, and maybe to others as well, if it were
valid to specify an optional argument for a closing div tag (and maybe
others as well), i. e.
div id="header"
...
/div id="header"

That way it is easier to see the intended structure.

I know I could simulate this like:
/div><!-- id="header" --
but consider it not as elegant as my suggestion.

How do others feel about this or has this been talked to death already
without me noticing?



The closing tag cannot contain attributes. Some editors can collapse
markup to do this for you, or can find matching opening and closing
tags. Have a look at [http://www.chami.com/html-kit/], it has the
ability to find matching tags, and the paid for version can collapse
tags.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.