<pre>
Sumario
El Elemento HTML <pre> (o Texto HTML Preformateado) representa texto preformateado. El texto en este elemento típicamente se muestra en una fuente fija, no proporcional, exactamente como es mostrado en el archivo. Los espacios dentro de este elemento también son mostrados como están escritos.
- Content categories (en-US) {{todo}}Flow content (en-US), palpable content.
- Permitted content Phrasing content (en-US).
- Tag omission None, both the starting and ending tag are mandatory.
- Permitted parent elements Any element that accepts flow content (en-US).
- DOM interface
HTMLPreElement
(en-US)
Atributos
Este elemento solo incluye los atributos globales (en-US).
Ejemplos
<!-- Un poco de codigo CSS -->
<pre>
body{
color: red;
}
a {
color:green;
}
</pre>
Resultado
body{ color: red; } a { color:green; }
Especificaciones
Specification |
---|
HTML Standard # the-pre-element |
Compatibilidad con navegadores
BCD tables only load in the browser