GateKiller GateKiller - 5 months ago 19
HTML Question

What was the <XMP> tag used for?

Does anyone remember the

XMP
tag?

What was it used for and why was it deprecated?

Answer

A quick Google search on W3C reveals that XMP was introduced for displaying preformatted text in HTML 3.2 and earlier. When W3C deprecated the XMP tag, it suggested using the PRE tag as a preferred alternative.

Update: http://www.w3.org/TR/REC-html32#xmp, http://www.w3.org/MarkUp/html-spec/html-spec_5.html#SEC5.5.2.1