Reduce the Number of DOM Elements

Does anyone know how to reduce the number of DOM Elements? Lily Pop???

Here is an example:








In this example the '
' has been removed.

Sometimes you need the additional div for layout purposes. But when not necessary, don't use it.

Anywhere where you are using an element to affect layout is usually something you can think about. Often times you can actually use less elements combined with CSS to achieve the same result. Hard rules are difficult as it depends a lot on the specific case.