View Full Version : <br> <br />

11-08-2010, 06:42 PM
I gues this is HTML question.

in jsp I got this code

which I see in debuger that it contains "<br />something<br />", as it should.

What actualy appears on HTML(that is jsp) page is: "<br>something<br>".

Any idea why is that ?

11-08-2010, 06:52 PM
ehh, I guess this is it:

Differences Between HTML and XHTML

In HTML the <br> tag has no end tag.

In XHTML the <br> tag must be properly closed, like this: <br />.

Major Payne
11-09-2010, 02:54 PM
Yep. XHTML requires all tags that do not normally have a closing tag to be closed with a space and a "/".