On 9/11/07, Gabe da Silveira <[EMAIL PROTECTED]> wrote: > > > My impression is that it is NOT legal HTML, but I could be wrong about > that.
It's not. The HTML4 spec doesn't say anything about the slash. It only defines that some elements can not have closing tags. The slash, however, is required in XHTML. XHTML compatibility (with HTML) guidelines advise that you should include the slash, but with a space in front, like "<BR />", so that HTML-conforming user agents could correctly parse the document as HTML. This all means that the trailing slash is not a part of HTML4 specification, but is so widely understood by user agents that it can be used in HTML anytime. Why is it understood, I can't say. User agents were probably made to be future-compatible to some extent. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
