description & Usage
The <samp> tag is used to show output from computer programs.
Browsers use a monospace font for the content inside this tag.
Related tags to <samp> are:
description | tag |
---|---|
Display computer code font-family: monospace |
|
Display computer code output font-family: monospace |
|
Show keyboard buttons font-family: monospace |
|
Display variable and mathematical expression font-style: italic |
|
Pre-formatted text font-family: monospace There are other default styles |
|
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<samp> |
Global Attributes
The <samp> tag supports the HTML Global Attributes.
Event Attributes
The <samp> tag supports the HTML Event Attributes.
Default CSS
Most browsers will display the <samp> tag with the following default style: