Login for Software or Support

CoffeeCup - HTML Editor, Flash & Web Design Software

Over 49,068,746 Downloads in 87 Countries

Tell a Friend About Our Cool Software

Buy the Book Here !

Chapter 2: Using <p> without </p>


Sometimes you'll see a paragraph marked by an opening <p> tag but without a closing </p> tag. While this works most of the time because the browser is smart enough to figure out where the paragraph ends even without the closing tag, It's a bad habit to get into. I recommend that you always use the closing </p> tag in your documents, it will make your pages more valid and help you down the road, trust me on this one.

The <br /> tag lets you start a new line of text without starting a new
paragraph. It is used alone, with no closing tag. It is usually used within a paragraph as shown in this example, with the browser display shown in Figure 2-2. <body>
<p>When you report for your first day of camp, please
be sure
that you have all of the following items with
you:</p>
<p>Sneakers<br />
Sun hat<br />
Bathing suit<br />
Towel</p>
<p>We'll be going swimming for part of the afternoon
and then reporting to the dining hall for a general meeting.</p>
</body>

The <br> Tag

Figure 2-2. Use the <br /> tag to start a new line of text without starting a new paragraph.

« Tags for Presenting Simple TextTags for Creating Lists »

Table of Contents
Download Our Software:

... and don't forget about our Free Software

CoffeeCup Home Page | Software | Copyright & Legal | Site Map | © 1996 - 2008 CoffeeCup Software, Inc.