Monday, September 2, 2013

Line Break

<BR> The <BR>                        tag forces a line break in the text.
CLEAR=option                          Causes the next line to start at the spot in which
(LEFT|RIGHT|ALL| NONE)               the specified margin is clear


<BR> tells your browser to go to the beginning of the next line. (BR stands for line BReak). <BR> acts in the same way as the ENTER key on your keyboard. When you press the ENTER key, the cursor goes to the beginning of the next line. With <BR>, the browser is also told to go to the beginning of the next line. The <BR> tag has no end </BR> tag because it doesn’t need to. Just the presence of <BR> adds
a line break.


1. When you display the file in a browser, you will find that the line breaks we had introduced (by hitting ‘Enter’ key) are ignored by the browser. The browser ‘wraps’ the text only at the end of the window space. This is because HTML has a special Line Break Tag, <BR> (BR for Line Break). You should use this tag to introduce any line breaks.

2. When you want to display your paragraph aligning to left, to right or to centre, the ALIGN attribute can be used with <P> tag. The ALIGN’ attribute takes one of the four values: LEFT, RIGHT, CENTER, or
JUSTIFY. Following shows some of the examples.
<P ALIGN = "RIGHT">
<P ALIGN = "CENTER">
<P ALIGN = "LEFT">

No comments:

Post a Comment