Help Center

Local Navigation

HTML element: <samp>


BlackBerry® Device Software 4.6 or later

The <samp> element designates enclosed text as sample output, such as text from programs and scripts. The BlackBerry Browser renders the enclosed text in a fixed-width font.

Common attributes

The <samp> element supports the class, dir, id, lang, style, and title attributes.

For more information, see Common attributes.

Event attributes

The <samp> element supports the onclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup events.

For more information, see HTML event attributes.


Was this information helpful? Send us your comments.