HTML <samp> tag
When writing in HTML, the <samp> tag is an inline element used to designate sample output from a computer. It is usually shown in the browser's default monotype font. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.
Note: This element is unique in that it is a phrase tag, which indicates that a section of text has structural meaning.
<p>Normal text. <samp>Sample text.</samp> Normal text.</p>
Normal text. Sample text. Normal text.
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <samp> tag does not have any unique attributes, it does utilize all of the standard attributes.
|All versions||All versions||All versions||All versions||All versions|