HTML <samp>
Tag Tutorial
The <samp>
tag is used to define sample output from a computer program. It is typically used to display input from a user or output from a program in a monospaced font.
Here is an example of how the <samp>
tag can be used:
<p>This is a sample output: <samp>Hello, World!</samp></p>
<samp>
Tag Attributes
Attribute | Description |
---|---|
None | Specifies that the content inside the <samp> tag is a computer output. |
When using the <samp>
tag, it is important to keep in mind that it is only used to represent output from a computer program, not user input. For displaying computer code or commands, it is recommended to use the <code>
tag instead.