HTML Level 1 and 2 Manual

Home | Element Index | Forms | Screens & Colours | GIFs | Layout | Compatibility


Element Index > Text Blocks

<XMP> Element

Category: Text Blocks
Period: HTML 1 / HTML 2.0
Status: core

Description

Displays example text with markup treated as literal text until the closing tag.

Syntax

<XMP>
<P>This appears as markup text
</XMP>

Attributes

None.

Usage Guidelines

Common Mistakes

Example Code

<XMP>
<H1>This will be shown, not interpreted</H1>
</XMP>

Authoring Note

Write the document first, then test it in a graphical browser and a text browser. The page should remain understandable if images fail, colours are ignored, or the browser uses its own fonts.


Top | Home | All Elements

HTML Level 1 and 2 Manual.