PRE Element | PRE Object

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!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.