Connected: An Internet Encyclopedia
5.5.2. Preformatted Text: PRE

Up: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1866
Up: 5. Document Structure
Up: 5.5. Block Structuring Elements
Prev: 5.5.1. Paragraph: P
Next: 5.5.2.1. Example and Listing: XMP, LISTING

5.5.2. Preformatted Text: PRE

5.5.2. Preformatted Text: PRE

The <PRE> element represents a character cell block of text and is suitable for text that has been formatted for a monospaced font.

The <PRE> tag may be used with the optional WIDTH attribute. The WIDTH attribute specifies the maximum number of characters for a line and allows the HTML user agent to select a suitable font and indentation.

Within preformatted text:

Example of use:

    <PRE>
    Line 1.
           Line 2 is to the right of line 1.     <a href="abc">abc</a>
           Line 3 aligns with line 2.            <a href="def">def</a>
    </PRE>


Next: 5.5.2.1. Example and Listing: XMP, LISTING

Connected: An Internet Encyclopedia
5.5.2. Preformatted Text: PRE