pre

< html‎ | elements
Jump to: navigation, search

pre

This article is In Progress.



Summary

The pre tag defines preformatted text. Text in a pre element is displayed in a fixed-width font and preserves both spaces and line breaks.


Overview Table

DOM Interface HTMLPreElement

Internationalization topics related to the pre element:

Examples

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

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

Usage

To cater for international users see: Managing text direction in form controls

Notes

Remarks

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

Standards information


HTML information

{

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related pages (MSDN)

  • xmp

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]