Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML pre definition

Browser support
IEFFOpSaf
FullFullFullFull

Type: block-level element

Syntax

<pre> ... </pre>

Description

Defines preformatted text. This means that it usually keeps spaces and line breaks in a text when displayed.

Attributes

Common attributes.

Example

[Try this example yourself]
<pre>
This is   an
example of
Preformatted   text
</pre>

Output

This is   an
example of
Preformatted   text
  • Comments

No comments added.