Line Breaks (HTML Tutorial part 7)

১১/১৮/২০১১ ০৭:৫০:০০ AM | | 0 comments »

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.

HTML Code:

<p>
Will Mateson<br />
Box 61<br />
Cleveland, Ohio<br />
</p>

Address:

Will Mateson
Box 61
Cleveland, Ohio
We have created a possible address for a letter head. The line break tag will also come in handy toward the end of our letter.

HTML Code:

<p>Sincerely,<br />
<br />
<br />
Kevin Sanders<br />
Vice President</p>

Closing Letter:

Sincerely,


Kevin Sanders
Vice President