Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Davey Shafik's Blog:
When To Use DIV and When Not To
Sep 01, 2005 @ 10:10:58

Davey Shafik has a new post over on his weblog today that looks at more of a web development issue than a PHP issue, but is important none the less - "when to use div and when not to".

A common question in #web on Freenode IRC, goes something like this:

"Should I use

's or tables for my layout?"

The answer is, neither.

He goes on to say that you shouldn't ever use a div when another tag will do. As an example, he gives CSS and a h1 and div tags to do the exact same thing....

tagged:

Link:


Trending Topics: