<samp>

Description

This element displays text in a monospaced or fixed-width font. It is typically used to display code samples.

Example


<html>
<body>
     <p>
          You can apply the<!--from   w  w w .j  ava 2  s  .  c  om-->
          <samp>style</samp>
          attribute to nearly any element.
     </p>
</body>
</html>

Click to view the demo

The code above generates the following result.

samp




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference