
----- Original Message ----- From: "Lee Passey" <lee@novomail.net>
Joshua Hutchinson <joshua@hutchinson.net> wrote:
When in doubt, use <div>.
I've learned the fear the <div> container. Let me show you why using a <div> container for "non-specific" blocks of text won't work. <div> <head>Level 1</head> <p>Paragraph 1.</p> <div>Block o' text.</div> <p> Paragraph 2.</p> </div> *** The above will not validate. Once you go one deeper in a nest, you cannot come back up just one level. You have to close the whole nesting. The above would work if changed to: <div> <head>Level 1</head> <p>Paragraph 1.</p> <div>Block o' text.</div> </div> <div> <p> Paragraph 2.</p> </div> *** The problem is that now you have two distinct blocks of text that should really be treated as one block. *** NOTE: None of this is to argue that the more correct way to handle the example you gave would be to mark it as something other than <p> chunks. You are right there. Just that your counter example of <div> wouldn't work at all. Josh