Paragraphs

Except in one special circumstance, a browser will not obey any line breaks in the ASCII text file that contains the XHTML document, but will instead reformat the text to break at the right-hand margin of the window (or sub-region of the window) in which it is being presented.

The most essential element is the Paragraph element (P), which defines a single paragraph in the text. The browser begins a new paragraph on a new line and creates gaps between paragraphs:

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

With the advent of CSS and some of the common attributes described later, it is possible to use this one tag for almost all block-level formatting, though a number of other tags were defined in early versions of ...

Get XML Companion, The, Third Edition 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.