Skip to main content

html-tags.com

<samp>

Sample output from a program or system.

Baseline: Widely available · Inline text semantics

When to use it

For terminal output, error messages, and log lines — everything the computer said back.

When not to

Not for code you type (code) or keys you press (kbd).

Example

The build prints 3 files converted, 0 errors on success.

<p>The build prints <samp>3 files converted, 0 errors</samp> on success.</p>
Rendered live above, source below.

Authoritative references