Skip navigation
newsletter signup

Why Have We Gone From <br> to <br />?

May 29, 2007
Forum member "Doogie" wonders why we've gone from <br> to <br />?
Post Comment

 Rick F. said:
Mostly to be XHTML compatible.

XHTML requires that all tags be lower case, and that ALL tags be closed.

So <p> must be followed by </p> to be "closed", but tags which generally don't enclose any page elements can be closed by the space and / within the tag.

So you could have <img src="blank.gef" /> as well as <br />.

<br> to <br />