Etiqueta HTML <xmp>
The <xmp> renders text between the start and end tags without interpreting the HTML in between and using a monospaced font.
El elemento <xmp> renderiza el texto entre las etiquetas de inicio y fin sin interpretar ningún HTML dentro de él, y lo muestra utilizando una fuente monoespaciada.
danger
La etiqueta
<xmp>está obsoleta y no es compatible con HTML5. Utiliza el<pre>en su lugar. A diferencia de<xmp>,<pre>interpreta las etiquetas HTML dentro de él, por lo que debes usar<y>en lugar de los caracteres<y>para asegurarte de que no se interpreten como marcado.
Sintaxis
La etiqueta <xmp> se utiliza en pares. El contenido se escribe entre las etiquetas de apertura (<xmp>) y cierre (</xmp>).
Ejemplo de la etiqueta HTML <xmp>
Etiqueta HTML <xmp>
<!DOCTYPE html>
<html>
<head>
<title>The title of the document</title>
</head>
<body>
<xmp> This is a preformatted text.
All characters in this area have the same width,
and the spaces and line breaks within this element are shown as typed.
</xmp>
</body>
</html>Resultado

Atributos
La etiqueta <xmp> también admite los Atributos Globales.
Práctica
¿Cuál es la característica de la etiqueta HTML <xmp>?