Html 5 Xmp Tag

In the html <xmp> tag was used to specify preformatted text and which tag is not support in html5 and you use to <pre> tag for alternative. In the difference between pre and xmp tag,you can use to <,> and & etc at <pre> tag and you can not use to <,> and & at XMP tag .

Syntax:

<xmp> --- </xmp>

Example Code

<xmp> Preformatted Text </xmp>

Out Put:



Preformatted Text

In the above example <xmp> tag has been added to Preformatted Text.





Content