The Web Design Group

samp - Sample Output

Syntax <samp>...</samp>
Attribute Specifications
Contents Inline elements
Contained in Inline elements, block-level elements

The samp element denotes sample output, such as from a program or script. Visual browsers typically render samp as monospaced text, but authors can suggest a rendering using style sheets. Since samp is a structural element, it carries meaning, making it preferable to font style elements such as tt when marking up sample output.


<p>When an undefined element is used in an XHTML document, a validator will give an error like the following:</p>
<p><samp>C:\SP\BIN\NSGMLSU.EXE:test.html:4:7:E: element "FOOBAR" undefined</samp></p>

More Information