2.2. Basic Text Elements

The basic text section elements include P (basic paragraph), PRE (preformatted text where white space is preserved), ADDRESS (for listing contact information), and BLOCKQUOTE (for large quotations or for regular paragraphs with indented left and right margins).

Basic Paragraphs

HTML Element: <P ...> ... </P> (End Tag Optional)
Attributes: ALIGN

The P element designates basic paragraphs, resulting in a section of text with blank space above and below. Although P is a container, the end tag is optional and most other block-level elements imply an end to the previous paragraph. Furthermore, body text not appearing inside any other block-level element is assumed to be inside a P element. Thus, many authors treat P as though ...

Get Core Web Programming, Second 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.