HTML:Element:samp
From MDC
Contents |
[edit] HTML Sample Text Element
<samp>...</samp> - The HTML Sample Text Element produces an inline element displayed in the browser's default monotype font (Lucida Console). This element was intended to identify sample output from a computer program.
[edit] Example
Regular text. <samp>This is sample text.</samp> Regular text.
[edit] Result
Regular text. <samp>This is sample text.</samp> Regular text.
(This example appears not to work due to restrictions in the wiki software, but in real web pages it should be fine!)
[edit] Note
A CSS rule can be defined for the samp selector to override the browser's default font face. Preferences set by the user might take precedence over the specified CSS.
[edit] See also
- HTML Code Element
- HTML 4.01 Specification: Phrase Elements
| HTML Elements |
| A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
| (Quick Links: HTML Element Cross Reference, HTML Category) |