Make your own free website on Tripod.com

Back Main GuestBook Contact Music (JS) Appendix

<BR> - Forced Line Breaks

This tag forces a line break. (<BR> is the HTML equivalent of pressing 'Enter' or 'Return'.) However, it should not be used to create a new paragraph. For that, you should use <P>. If you don't like the way HTML paragraphs normally look (double line break), use CSS to modify that. See <BLOCKQUOTE>'s sample for a demonstration of that.

It is illegal HTML to close this tag. </BR> does not exist.

Attributes for <BR>

  %coreattrs %i18n %events

Presentational Attributes

D clear= [CI]
  • "none"
Specifies a normal line break; does not affect text wrap.
  • "left"
Clears text to original left margin.
  • "right"
Clears text to original right margin.
  • "all"
Clears text to both left and right original margins.
This attribute controls text wrap around images, tables, etc., by causing a break until the end of the object, starting the next line at the original margin before text wrap. The default value is none.

Samples:

Exercize using image alignment and forced breaks

<== I've put align=left in this image tag,
and align=right in this one. ==>
The text has cleared the first image, but not the second because I put clear=left.
Wrapped Text.
Clear=all ends text wrap on both sides.
Note: Netscape seems to have a problem with this example. -- If I keep writing on this line, watch what happens: it writes over the image. So be sure and test your page in Netscape, too, if you're aligning two images side by side like this.


Here is the code for the sample above:

<H4>Exercize using image alignment and forced breaks</H4>
<P>
<IMG width=50 height=100 align=left>
&lt;== I've put align=left in this image tag,<BR>
<IMG width=50 height=210 align=right>
and align=right in this one. ==&gt;<BR clear=left>
The text has cleared the first image, but not the second because I put clear=left.<BR>
<IMG width=10 height=50 align=left>
<IMG width=50 height=50 align=right>
Wrapped Text.<BR clear=all>
Clear=all ends text wrap on both sides.
<BR clear=right> <!-- to end wrap for NS -->
<EM>Note: MSIE will end all text wrap in the specified direction, while Netscape will end text wrap only to the closest element in that direction. So please test your pages in at least both MSIE and NS.</EM> </P>