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.

:

byenru