126 of 133 menu

The xmp tag

Inside the xmp tag, all other tags will be displayed as plain text.

Text placed inside the xmp tag will become monospace by default (meaning that all letters will be the same length). This behavior can be changed using the CSS property font-family.

Unfortunately, this tag is considered non-standard and the validator will complain about it.

Example

Let's take the b tag and display it in the browser (note that the text will start on a new line, this is because the xmp tag is a block tag):

Next comes <xmp><b>bold</b></xmp> text.

:

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline