Click to return to the DHTML, HTML     
PLAINTEXT Element | PLAIN...     Q Element | Q Object     DHTML Objects    
Web Workshop  |  DHTML, HTML & CSS

PRE Element | PRE Object


Renders text in a fixed-width font.

HTML Syntax

<PRE
    CLASS=classname
    ID=value
    LANG=language
    LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT  | VBS 
    STYLE=css1-properties
    TITLE=text
    event = script
>

Remarks

Text within the PRE element is formatted. Spaces and carriage returns are preserved.

The PRE element is a block element and requires a closing tag.

This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

Members

Styles

Example

This example uses the PRE element to format text so that it renders exactly as it's typed.

<PRE>
This text is formatted
   exactly
      as
         it
      is
   typed.
</PRE>

See Also

XMP



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.