HTML <samp> Element Reference

The HTML <samp> element represents sample output from a computer program.

<samp>

HTML <samp> Element Reference

The HTML <samp> element represents sample output from a computer program.

Categories

  • Text-level semantics

Tag omission

Consult the HTML Living Standard for the precise tag-omission rules.

Content model

  • Detailed content-model guidance will be added to this reference.

Attributes

Examples

Example

A practical samp element example.

<p>The command prints <samp>Build completed successfully.</samp></p>

Related references

Description

The HTML <samp> element represents sample output from a computer program.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <samp> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies