The second way does not validate. The div tag is not self-closing. A tag is defined as being either a tag pair, or self-closing. It can't be both.
Many browsers totally ignore a pair of tags with no contents.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
Offline 3,314 posts
since Jan 2007