HTML/Elements/samp

From Web Education Community Group
< HTML‎ | Elements
Revision as of 16:43, 22 November 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<samp>

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

HTML Attributes

See global attributes.


Examples

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>

Samp01.png

HTML Reference

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