HTML <samp> tag
HTML <samp> tag : Definition
• The HTML <samp> tag stands for short for sample tag.
• The tag <samp> is used to define the sample output text from a computer program or script etc.
Html <samp> tag example
<!DOCTYPE html>
<html>
<head>
<title>samp tag example</title>
</head>
<style>
body {
text-align:center;
}
.atc {
font-size:40px;
font-weight:bold;
color:green;
}
.atc2 {
font-size:25px;
font-weight:bold;
}
</style>
<body>
<div class ="atc">AimToCode</div>
<div class ="atc2"><samp> Tag</div>
<samp>A computer science portal for learning programming languages free.</samp>
</body>
</html>
Output:
AimToCodeTagA computer science portal for learning programming languages free.