blank.gif (43 bytes)

Church Of The
Swimming Elephant

Search:
5.5.2. Preformatted Text: PRE 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:

  • Line breaks within the text are rendered as a move to the beginning of the next line.

      NOTE - References to the "beginning of a new line" do not imply that the renderer is forbidden from using a constant left indent for rendering preformatted text. The left indent may be constrained by the width required.

  • Anchor elements and phrase markup may be used.

      NOTE - Constraints on the processing of <PRE> content may limit or prevent the ability of the HTML user agent to faithfully render phrase markup.

  • Elements that define paragraph formatting (headings, address, etc.) must not be used.

      NOTE - Some historical documents contain <P> tags in <PRE> elements. User agents are encouraged to treat this as a line break. A <P> tag followed by a newline character should produce only one line break, not a line break plus a blank line.

  • The horizontal tab character (code position 9 in the HTML document character set) must be interpreted as the smallest positive nonzero number of spaces which will leave the number of characters so far on the line as a multiple of 8. Documents should not contain tab characters, as they are not supported consistently.

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

Cotse.Net

Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

 
.
www.cotse.com
Have you gone to church today?
.
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 Cotse.com.
Cotse.com is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609