Main Index |
Top Of Tree |
Tag Index |
Tag History
- What is it?
- The Xmp tag displays characters "As-Is" in the browser
using a fixed-width font. Recommended display of this tag is an 80
character line length. Until a closing Xmp tag is encountered, other tags
are displayed as text and not evaluated.
The rules for this sort of behavior can have many consequences in parsing
techniques, thus the use of this tag is strongly discouraged (the Pre
element should be used instead.) This tag (as well as the LISTING tag) is
no longer standard HTML. They are considered "obsolete" in the
HTML 2.0 specification and HTML 3.2 draft, but they should be implemented
by browsers for backward compatibility.
Style Sheet Attributes
[More on Cascading Style Sheets]
- Class
- 2 | 3
| 3.2 | IE3B1
| M | N4B2
- Required? No
- Description:
This represents an assigned semantic classification grouping(s) for the
current tag.
- Values:
Given as a comma separated list of alphanumeric characters. Class names
may contain spaces (multiple consecutive spaces treated as a single
space.)
- ID
- 2 | 3
| 3.2 | IE3B1
| M | N4B2
- Required? No
- Description:
This assigns an alpha-numeric identifier that is unique
to this tag instance. Style sheets may use this attribute to reference
the current instance of this tag. Hyperlinks may also use this identifier
to serve as a destination.
- Values:
An alphanumeric string - initial character must be a letter followed
by alphabetic characters, digits, "-" or "."
characters. The allowable set of alpha-characters is restricted to the
A-Z and a-z set.
- Style
- 2 | 3
| 3.2 | IE3B1
| M | N4B3
- Required? No
- Description:
This attribute is a text string that provides rendering style
information for the current tag.
- Values:
Please see the description of
inline styles for more
information on how to use this attribute and its
possible values.
- Example
- <xmp>text</xmp>
- Parent Model
- NA
- Content Model
- NA
Tips & Tricks
- Because this tag has limited or no support in the HTML
specifications, neither support or appearance in different browsers
can be guaranteed.
Browser Peculiarities
- Netscape and Mosaic are the only browsers to display all
characters literally.
Boring Copyright Stuff...