Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

What is "<br />"

I haven't been paying attention and try to avoid HTML at all times but what is "<br />"

Is it the new improved <br>?

Wednesday, July 23, 2003

I think that's the XHTML shorthand for <br></br>

XML requires all tags to be explicitly closed.

Wednesday, July 23, 2003

xhtml requires all tags be closed.  So, <br /> is the new syntax for <br>.

One note:  You rarely (if ever) need br if you use stylesheets.

Joel Goldstick
Wednesday, July 23, 2003

Joel, info on coding without BR?


R. C.
Friday, July 25, 2003

Here is a great CSS resource:

Its the WIKI (sort of a group editable site) that is part of the CSS-D discussion list.

Specifically about <br>.  It just performs a line break.  Sometimes people use it instead of using <p> ...</p> for paragraphs.  Other times, a list makes more sense.  Many menus can be done with lists (and css) that might have been tried with <br> tags. 

Do you have a specific example?

Joel Goldstick
Friday, July 25, 2003

*  Recent Topics

*  Fog Creek Home