Multiple choice

The use of an xmp tag is

  1. underlined text

  2. pre-formatted text

  3. subscripted

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The xmp (example) tag displays pre-formatted text exactly as written, preserving whitespace and line breaks. Unlike 'pre', xmp also escapes HTML tags within it so they display as text rather than rendering. Both are deprecated in favor of 'pre' or 'code' tags with proper entity encoding.