Preformatted Text



The PRE element is used to enclose text to be displayed with a fixed width typewriter-like font. This is useful for presenting text that has been formatted for a teletype, or for a fixed width character display. It is also commonly used to present typed computer code examples.

You can include character emphasis elements (EM, STRONG, B, I, etc.) as well as hypertext anchors within a PRE.

  1. Things to Avoid - You should NOT use elements that define paragraph formatting within the PRE element. This means you should not use

  2. Things That are OK