Sunday, 6 November 2011

HTML Line breaks <br/>

Line breaks are different then most of the tags we have seen so far. A line break ends the line you are currently on and resumes on the next line. Placing <br /> within the code is the same as pressing the return key in a word processor. Use the <br /> tag within the <p> (paragraph) tag.

Examples:

Code,

<p>
Hai, Pradeep <br/>
<br/>
Its Me…<br/>
How are you ? <br/>
</p>

Result :

Hai, Pradeep

Its Me…
How are you ?

No comments:

Post a Comment