HTML samp <samp> tag - Coding Tag
×

HTML samp <samp> tag

1902

HTML SAMP <samp> tag is a phrase tag, we are used to representing the sample output from a computer program or a script, in the web browser. The content written between the <samp> and </samp> tags renders in a browser's default its used monospace font.

Syntax:

<samp> content goes here.. </samp>

The <samp> tag is not deprecated yet, but you can also use the CSS property to achieve the same result.

Program:

<!DOCTYPE html>
<html> 
<head>
<title>HTML samp tag</title>
</head>  
<body>
<h2> Example of samp tag </h2>
<em> Emphasized text </em><br>
<strong> Strong text </strong><br>
<code>A piece of computer code</code><br>
<samp> Sample output from a computer program </samp><br>
<kbd> Keyboard input </kbd><br>
<var> Variable </var>
</body>  
</html>

Output:

Result - HTML samp tag



Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments