The Sample Tag

ken's picture

Opening tag : <SAMP>
Closing tag: </SAMP>

Purpose:
Sample text defines text which is literal and monospaced.

Attributes:
Class=class
- Specifies the formating class for the text.

Dir=direction
- Useful for languages that are read from right to left.

Event=Javascript
- Allows Javascript to be run on certain events.

ID=name
- Specifying an ID allows the sample to be referenced and manipulated dynamically.

Lang=language
- Specifies the language of the sample text.

Style=style
- Allows a style to overwrite the standard formatting.

Title=title
- Allows a title to be specified, if required.

Example:

This is some <Samp> Sample <Samp>text.

Related Tags:

-

Back to:
Alphabetical Guide
Guide By Type