HTML - Tags - <xmp>

#147 of 147
xmp
Next a
Prev wbr

 <html>
 <body>
     <xmp>
         <catalog>
             <book isbn="978-0-553-90034-7">
                 <title>Foundation</title>
                 <author>Isaac Asimov</author>
             </book>
         </catalog>
     </xmp>
 </body>
 </html>
 

The xmp element contains example HTML or XML code. It's contents will be displayed in a fixed-pitch font and the browser will not attempt to interpret the text as markup.

Obsolete Use pre instead.

xmp is short for example.

A live example:


<catalog> <book isbn="978-0-553-90034-7"> <title>Foundation</title> <author>Isaac Asimov</author> </book> </catalog>

N of

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath