<p>—Organizing Text into Paragraphs

The <p> element is a very popular one when dealing with text in Web pages; it allows you to break text up into paragraphs. Paragraphs are block elements that you can format as you like in stylesheets or with style attributes, including indenting the first line and so forth. If you're coming to XHTML from HTML, one issue to flag is that every <p> tag needs a corresponding </p> tag, which is easy to forget because HTML doesn't require that. In addition, note that paragraphs are block elements, which in XHTML means that you cannot display other block elements, such as headings, in them. The <p> element is supported in XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, and XHTML 1.1. Here are this element's ...

Get Real World XML 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.