I want to switch over and start coding by the XHTML Standards, but first, how well is it supported by various browsers?
Printable View
I want to switch over and start coding by the XHTML Standards, but first, how well is it supported by various browsers?
I don't think you should have any problems, as long as you remember to leave a space before the closing / of empty tags, e.g.:
Code:<br /> <!-- is fine -->
<br/> <!-- can cause problems -->
All your answers are here:
http://www.w3schools.com/xhtml/
And it is supported by browsers.
<br/> <!-- can cause problems -->
Apparently Netscape, the poo pellet of the browser world, doesn't like it, which is why it has to be
<br /> <!-- thanks to the bastards at Netscape :) -->
Yeah NS 4 is a pain to cater for, but the newer ones are fine.
I don't recall seeing anything on that site about it when you last referred me to it. Maybe I just missed it. But thanks anyways. And thanks, Rick.Quote:
Originally posted by mendhak
All your answers are here:
http://www.w3schools.com/xhtml/
And it is supported by browsers.
<br/> <!-- can cause problems -->
Apparently Netscape, the poo pellet of the browser world, doesn't like it, which is why it has to be
<br /> <!-- thanks to the bastards at Netscape :) -->
No, Netscape is correct. There is no "br/" tag defined in HTML. There is no "/" attribute either, but that doesn't stop it from rendering it.Quote:
Originally posted by mendhak
All your answers are here:
http://www.w3schools.com/xhtml/
And it is supported by browsers.
<br/> <!-- can cause problems -->
Apparently Netscape, the poo pellet of the browser world, doesn't like it, which is why it has to be
<br /> <!-- thanks to the bastards at Netscape :) -->
pfft... Nutscrape Nut.
*braces for potential Browser War*
No, you misunderstand. You're looking at the text at how you as a human see it, not as an old HTML parsing engine would se it. <br/> is no diiffent than <brt> or <br8> or <brr> as not being a <br> tag. <br /> is the same as <br /="/"> or <br t="t"> - invalid attribute, but still a <br> tag and renderable if you ignore the invalid attribute. Understand what I'm saying?Quote:
Originally posted by mendhak
pfft... Nutscrape Nut.
*braces for potential Browser War*
Aah, yes.
I take my comment back, save it for later.
I check in so rarely anymore, but everytime I do, there is a reason to applaud Josh.
(Oh, and one more reason to resent the MS-wash.)