Quote:
|
Originally Posted by Stickman
Being picky, but ideally, you want to be careful when you approach it like that. Could quickly get divtastic.
For example, your navigation can often just be a list <ul> and for simple layouts, content can be just positioned paragraphs and images.
You can position and style all elements, not just divs.
|
It's not being picky Stick, it's the way it should be done, and was what I was meaning.
Basically, make sure your markup is semantic - if something is a list of items, mark it up as a list, if you've pairs of items, mark them up as definitions lists, nest your headers correctly, etc.
The div element should be reserved for dividing up the page, encapsulating numerous other related semantic elements - e.g. a group of headers and paragraphs could be wrapped with a div to allow the whole area to be styled collectively.