HTML - <xmp> Tag


Advertisements


Description

The HTML <xmp> tag specifies preformatted text.

Example

Live Demo
<!DOCTYPE html>
<html>

   <head>
      <title>HTML xmp Tag</title>
   </head>

   <body>
      HTML tags include 
      <xmp><b> for bold text</b>, <i> for italic text.</i></xmp>
   </body>

</html>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements