Answers

Oct 09, 2006 - 06:21 PM
Hi there!
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,
Ric
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,
Ric

Oct 09, 2006 - 06:41 PM
Yeah, good return question :-)
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.
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
But if I should answer your question with a more practical approach, I dare say that it is very handy to have empty div's - for instance to create blocks. Or to put something in them later (DHTML).
Another thing: Take the
Another thing: Take the
Add New Comment