HTML <samp> tag

Usage

Defines sample computer code text.

Example

Code:

<p>Click the OK button and you should receive the message
<samp>File Saved</samp></p>

Output:

Click the OK button and you should receive the message File Saved

Required Attributes

  • none

Optional Attributes

  • none

Core Attributes