HTML: / Home / PreTag

The Preformatted Element

The Preformatted element contains text that can have keyboard entered line breaks, spaces and tabs. It begins with the <pre> tag and ends with the </pre> tag.

Like the "p" element, it displays a blank line before its contents and a blank line after its contents.

  <pre>
  This is some preformatted text.

  It demonstrates the "pre" element.</pre>

Notice the trick of including the </pre> end tag on the same line as the last line of text. This prevents the "pre" element from having two lines at the end of the "pre" text.

More about Files

<- LineBreak            Head ->
11PreTag