Quote:
Originally Posted by sjfan
As far as being a container goes, they are different: a div can contain other block elements. A p cannot.
To me, div is better style in this case. The major difference (aside from the functional one I just mentioned) is that p connotes that the contents are a paragraph, semantically. That’s not the case here, so div is a little better in terms of expressing what’s meant. But that’s just a style difference; neither one is wrong per se.
|
I suspect that this is a good part of the underlying cause for the ugliness that JSWolf sees.
Intuition is sometimes difficult or seems unnecessary to articulate.