<samp> tag

HTML <samp> tag

The <samp> tag is a phrase tag which describes sample output from the computer program.

The sample output is displayed to the user when they are running the application.

Syntax:
<samp>text…</samp>

Example

<samp>It describes sample output from compute program</samp>

How Browser will display

INLINE.

Difference between HTML4.01, XHTML and HTML5

NONE.

Attributes used with <samp> tag

NONE

Global Attributes

The <samp> tag supports Global attributes.

Event Attributes

The <samp> tag supports Event attributes.

Supporting Browsers

supporting-browsers for tags

Related Tags

Other set of Phrase tags are –

<code>, <kbd>, <var> & <em> tags.

Tutorials for all brains!