HTML Samp Tag <samp> is used to indicate a sample output from a computer program or some script.
The Samp Tag is a closed tag and needs to be closed using the closing Samp Tag </samp>.
The text within the opening and closing (<samp> and </samp>) tags becomes the indicated sample computer program output.
Syntax of HTML Samp Tag
<samp> Some computer output goes here … </samp>
Example of HTML Samp Tag
|HTML Samp Tag Code||Output|
<br /><p> Below is a </p><br /><samp> sample of computer generated output </samp><br />
|Below is a sample of computer generated output|
Here in the above Samp HTML Tag example we can see that the text “sample of computer generated output” is mentioned as Sample output from a computer program.
HTML Samp Tag support all HTML Global Attributes and HTML Event Attributes.
HTML Samp Tag Supporting Browsers