Fandom

HTML & CSS Wiki

Xmp

649pages on
this wiki
Add New Page
Comments0 Share

This deprecated, presentational element is not recommended. Authors should generally find an alternative way to accomplish the same task while adhering to all best practices, or simply do without it if it is unimportant.



The HTML <xmp></xmp> element is used to create example text. It has been deprecated in favor of the <pre> element, which produces the same result.

AttributesEdit

Attribute Value Description
align left
right
center
This indicates the horizontal alignment of the content in this block element relative to the browser window.
Global Attributes

See Global HTML Attributes.


HTML example:

<xmp>Example text.</xmp>
That gives:
Example text.


See AlsoEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.