Oh, okay.
(Let’s hope you can spare me the same painful process and get to the good stuff!)
I also said it was an oversimplification, because looking back I cant blame myself, or anybody for coming to the same conclusions, even when the divs and spans arent being used for soley presentational purposes.
Life is complicated!!
let say you had a DIV … you a needed one… which was your main content container
within it you have a number of stories…
one could say oh… well just wrap the stories in divs… ( even if they are not being moved around the page)… again i can see the appeal. but remember … a div doesnt hold any semantic meaning. so the div is just there for when you review the code… since you arent adding a bg/ or moving the story chunk… it is actually a superfluous tag…
If you don’t use it, I agree.
BUT, dres… you say… what if I wanted to add white-space or size the story container…
sometimes, that is necessary… yes. but also sometimes, it can just as easly be done by styling the contained tags instead… for example…
#main div.right{ 200px; background (decorative.jpg)}
is quite similar to getting rid of the div, putting the decorative bg in the #main container… and adding a #main > p, h1, h2, h3, …{margin-left:200px;}
of course this isnt practical if you need the left column to hold content, or if the main container already has a bg…
Okay.
but what I was getting at was that if you start by thinking that divs are necessary, you wont look in the possibilities of when they are NOT. you have to examine each page’s case individually… rather than look ( or assume) there is a tag in HTML that was made for layout purposes. that belief… or search… will lead your code astray.
Okay.
Well, I was originally thinking of using <DL><DT><DD> but since my paragraph has multiple parts (e.g. Author, Date, Summary, Image), I wasn’t sure if that would work.
I guess you just combine “sub Tags” in the <DD>?
And, yes, obviously I saw that DIVs could be abused, and that is why I made this post.
When you are dealing with lots of data and complex relationships, marking up your web pages gets trickier!
Debbie