[thelist] NN4.x and IE4.x

rudy rudy937 at rogers.com
Wed Jul 23 17:25:32 CDT 2003


> You mention that <div> is a gateway tag. What is a gateway tag?

the reference is to drug use and how some people feel that marijuana is a
"gateway" drug which eventually leads to cocaine and heroin

the analogy is that once you start using DIV, it's really easy to start
throwing a DIV in anywhere you have a presentational challenge

eventually, you find yourself sprawled in some gutter, honest citizens going
out of their way to avoid you

you end up writing abominations such as

   <div id="main">
     <div id="wrapper">
       <div id="content">
         <div id="navheader"></div>
           <p class="foo">some content</p>
       </div>
     </div>
   </div>


> And is <div> something to be avoided now?

yes

avoid the use of DIV

i mean, look at the example above

look at it in the context of separating presentation from content

what are all those extra DIVs doing?

presentation

get them out of the code



> If so, under what circumstances?

all

;o)


would you like to hear my rant on the topic of "classitis"?

it's fairly innocuous, compared to my rant on css hacks...



rudy





More information about the thelist mailing list