in reply to Re: close end tag
in thread close end tag

<br /> tags don't have closing tags in html.

That statement is wrong by definition. <br/> is short for <br></br>, so you're saying that something with a closing tag can't have a closing tag.

(Technically, <br/.../ is short for <br>...</br> in HTML, but the HTML parsers used by web browsers don't support that. If they did, it would also be invalid since the BR element cannot have content or a closing tag.)

<br></br> is perfectly valid XHTML. It's the unabbreviated form of <br/>.

Replies are listed 'Best First'.
Re^3: close end tag
by ssandv (Hermit) on Aug 27, 2009 at 15:47 UTC
    I think the intent was clear. If you prefer, read it as "don't have separate closing tags in html."

      You used the term "html" to refer to both the SGML and XML serialisations of HTML, so I thought you might have been saying <br></br> is not allowed in XHTML either.

        Ew, sorry. No, I certainly didn't mean to imply that.