Sample Text | WebReference

Sample Text

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Sample Text

<samp> ... </samp>

Description: Indicates sample text, usually rendered as a monospaced font. Can also be used for sample output from scripts and programs.

Browser Compatibility: NN: 1.0+ / IE: 2.0+ / Opera: 4+

Attributes:
  • class
  • dir
  • id
  • lang
  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • style
  • title

Code Example:

The format would be: <samp>To Whom It May Concern:</samp>.



Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/