HTML <samp> Tag
Computer says <samp>no</samp>
The above example demonstrates usage of the <samp>
element.
The <samp>
element represents computer output. It can be used to markup sample output from a computer program.
The <samp>
element can be used in conjunction with the <kbd>
element.
The W3C specifies the usage of these two elements as follows:
When the
<kbd>
element is nested inside a<samp>
element, it represents the input as it was echoed by the system.When the
<kbd>
element contains a<samp>
element, it represents input based on system output, for example invoking a menu item.When the
<kbd>
element is nested inside another<kbd>
element, it represents an actual key or other single unit of input as appropriate for the input mechanism.