asp.net.ph

Skip Navigation Links

XMP Element | XMP Object

Language References


HTML 2, 3.2, 4, 4.01, 5

Renders text in a fixed-width font, typically used for examples.

HTML Syntax

Remarks

The XMP element displays a sequence of literal characters in the browser's default fixed-width font.

XMP is typically used to dsiplay examples.

All white space, line breaks and even text that includes characters that HTML normally interprets, such as the symbols that enclose an HTML tag ( < and > ), are rendered exactly as they appear.

This element is a block element. It starts on a new line, and is preceded by extra space.

This element has been deprecated in favor of the PRE and SAMP elements.

Members

XMP Members

Example

<p>The basic structure of an HTML document is...
<xmp>
   <html>
      <head> Header info goes here </head>
      <body> Body content goes here </body>
   </html>
</xmp>

which would render on a Web page as

The basic structure of an HTML document is:

<html> <head> Header info goes here </head> <body> Body content goes here </body> </html>
See Also

CODE, KBD, PRE, SAMP, TT



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note