This site use HTML, not XHTML. </br> is not a valid HTML tag.

To quote from Forcing a line break: the BR element:

<!ELEMENT BR - O EMPTY -- forced line break --> <!ATTLIST BR %coreattrs; -- id, class, style, title -- >

Start tag: required, End tag: forbidden

Note the "End tag: forbidden".

Even if the </br> tag was allowed, why would you want to include it? You're not allowed to put anything in between the the <br> tag and the </br> tag. It is explicitely forbidden by the "EMPTY" in the quoted text.

You seem to be confusing BR for DIV.

<p>foo<br>bar<br>bla</p> # ok <p>foo<br>bar<br>bla # ok, same as previous <p>foo<div>bar</div>bla</p> # ok <p>foo<div>bar</div>bla # ok, same as previous

Or did you mean <br/>? <br/> is an XHTML shortcut for <br></br>. Neither the shortcut nor the expanded version is valid HTML.

Sending XHTML when claiming to send HTML is bad. They are not compatible.

Summary:

Update: Added Summary.

Update: I forgot to mention that < XXX> and < /XXX> (for whatever XXX) are invalid HTML and XHTML tags. No space is allowed after the opening <. IE and Firefox interpret the < literally.


In reply to Re: Add < /br> to Approved tags? by ikegami
in thread Add < /br> to Approved tags? by ww

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.