This wiki has been archived and is now read-only.


From HTML Wiki
Jump to: navigation, search


The <samp> element represents output from a program or computing system.

HTML Attributes

See global attributes.


Example A

This example shows the samp element being used inline [try it]:

<p>If you input a wrong value, it is displayed as "<samp>error!!</samp>"</p>

HTML Reference

The HTML5 specification defines the <samp> element in 4.6.13 The samp element.