Sample. Defines sample output, from a computer program for example. The HTML <samp> tag is used for indicating sample output from a computer program, script etc. The samp tag surrounds the sample word/phrase.

Required Attributes

  • None.

Optional Attributes

Example

<p>Click to see the output message <samp>You did it!</samp>.</p>

Changes in HTML5

  • None.

Related Tags