HTML sample output - how to use <samp> tag

The HTML <samp> tag is a phrase tag used to define sample output from a computer program.


The samp tag supports the global and event attributes.


<p>Sample output from a <samp>computer program</samp></p>

Related HTML tags:

  • <em> - used to emphasize text
  • <strong> - used to define important text
  • <code> - used to define computer code
  • <kbd> - used to render keyboard input
  • <var> - used to define a variable