: The SAMP Element
Last updated: 2026-09-12
<samp>The SAMP Element
Marks sample output from a program or system, rendered in a monospace font by default.
| Category | Formatting |
|---|---|
| Content Model | Phrasing content |
| Allowed Parents | Any element that accepts phrasing content |
| Content Tag | Yes — requires closing </samp> tag |
| Status | Standard |
📝 Syntax
<samp>sample output</samp>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <samp> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: <samp> means output, distinct from <kbd> (input) and <code> (code).