<BR>
- Forced Line BreaksThis 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.
<BR>
%coreattrs %i18n %events |
D |
clear=
|
[CI] |
---|---|---|
|
Specifies a normal line break; does not affect text wrap. | |
|
Clears text to original left margin. | |
|
Clears text to original right margin. | |
|
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:
<== 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>Exercise using image alignment and forced breaks</H4>
<P>
<IMG src="../images/image.gif" alt="alternate text" width=50 height=100 align=left>
<== I've put align=left in this image tag,<BR>
<IMG src="../images/image.gif" alt="alternate text" width=50 height=210 align=right>
and align=right in this one. ==><BR clear=left>
The text has cleared the first image, but not the second because I put clear=left.<BR>
<IMG src="../images/image.gif" alt="alternate text" width=10 height=50 align=left>
<IMG src="../images/image.gif" alt="alternate text" 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>