![]() |
|
![]() |
|
![]() |
|
![]() |
Step 4 : Formating blocks of text in your HTML document. Creating a line break with the <BR> tag. Unless told otherwise a browser displays the characters in a steady stream. If you don't do some sort of formatting then your entire page will be a continous single line. For example..
Will show as.. First Line Second Line Third Line Fourth Line To skip to a new line we use the <BR> tag. Here is the revised document.
The <BR> tag basically says - start a new line. You can also use the <BR> tag to skip one or more lines.
Formatting entire paragraphs with the <P> tag. Now lets take a look at formatting entire paragraphs. The tag to mark a paragraph is <P>. Placing this tag at the start of each paragraph demarcates the paragraph. In some browsers the tag has the effect of skipping a line after the paragraph ends.
Another thing about the <P> tag... although in the examples we used a closing tag (</P>), it is not entirely necessary. Nearly all browsers will assume that when a new <P>aragraph has begun, the old one must have ended.
is the same as...
Centering text with the <CENTER></CENTER> tags. Any text placed within <CENTER> and </CENTER> tags will be centered on the page.
Leaving Spaces in text with . Have a look at this document...
On the browser it appears as.. Rediff personal homepages The browser won't recognize more than 1 space. So you have to use the < > tag wherever you would like to have a space.
The browser will dispay your text in a steady stream unless you tell it otherwise with line breaks, etc. It will reduce any empty areas to 1 space. If you want more spaces, you must use the space code ( ). If you hit Return (or Enter) while you are typing, most browsers will interpret that as a space... unless there is already a space there.
|
![]() |
|
Broadband | Chat | Contest | Movies | E-cards | Weather | Travel | | Romance | Astrology | Shopping Money | Instant Messenger | Auctions | Auto | Education | Jobs | TechJobs | Women | Technology |
|
![]() Disclaimer © 2000 rediff.com India Limited. All Rights Reserved. |