Oct 09, 2006 - 06:21 PM
Good question. The reason why it may or may not work depending on the browser or what follows in the HTML will depend on the browser and their interpretation/implementation of the standards, commonly referred to as either "strict" or "quirks". There is a good site - http://www.quirksmode.org that can explain some of the nuances of the two different modes in the various popular browsers.
I have a return question...why use an "empty" tag? This tag is supposed to be used as a container for other elements/items on the page. It looks from your code that you're using the as a "block" to create space. You could achieve this with a 1px transparent .gif file contained in the and that way it won't be affected by additional tags following the "empty" .
I doubt you'll get reliable results trying to use the XHTML notation style in all the browsers, so you're probably going to end up changing back to a more "standard" style.
I hope this helps,
Oct 09, 2006 - 06:41 PM
Basically, my question was - of course - just out of curiosity, not because it was a big problem for me.
However, it becomes something of a problem at times when your code is not working and you have to figure out why. Since I felt, I was using the right notation, it bothered me that browsers didn't agree.
Oct 09, 2006 - 06:47 PM
Another thing: Take the