HTML <samp> Sample Output Tag Reference

The samp HTML tag means Sample Output, and it defines text as sample output from scripts or programs.

It's really only used to disply text in monospace font, so it shouldn't be used. Use CSS instead.

The <samp> HTML/xHTML tag

The <samp> tag defines sample output from a script or program.

When to use the <samp> tag (semantic use)

It's not deprecated, but it really only defines the style of text, so it should be avoided.

Example of <samp> tag use

No examples are given as this tag is not recommended.

Alternatives to the <samp> tag

You may also consider using:

<pre>
To display preformatted text.