XMP
and PRE
differ. Content within PRE
tags is formatted as follows:
- Conținutul este afișat cu un font fix,
- Toate spațiile albe sunt păstrate și
- Fiecare pauză de linie începe o linie nouă.
If you want to include special characters such as <
, >
and &
within PRE
tags, they must be escaped so that they are not subject to special interpretation by the browser.
În schimb, conținutul XMP nu trebuie să scape.
The only character sequence that cannot be included within XMP
tags is the XMP
end tag (
).
XMP
is still supported by the browsers I have tested. You can try it with xmp.html. View the source to see the tags.