Starting a New Paragraph

(X)HTML does not recognize the returns or other extra white space that you enter in your text editor (see page 32). To start a new paragraph in your Web page, you use the p tag.

Figure 3.12. Enclose each paragraph in opening and closing p tags. If you don’t close them (which is perfectly legal in HTML but not XHTML), styles won’t be applied properly.

To begin a new paragraph:

1.
Type <p>.
2.
Type the contents of the new paragraph.
3.
Type </p> to end the paragraph.
Figure 3.13. The amount of space between each paragraph is proportional to the size of the text.

✓ Tips

  • The closing </p> tag is required both in XHTML ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.