The Definition and UsageThe Tip: This tag is not deprecated. However, it is possible to achieve richer effect by using CSS. Also look at:
Browser SupportGlobal AttributesThe Event AttributesThe |
Example:
HTML
<p><samp>File not found.<br>Press F1 to continue</samp></p>
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
samp {
font-family: monospace;
}
</style>
</head>
<body>
<p>A samp element is displayed like this:</p>
<samp>Sample output from a computer program</samp>
<p>Change the default CSS settings to see the effect.</p>
</body>
</html>
Reffered: https://www.w3schools.com/tags/tag_samp.asp
html samp |
How to create HTML <samp> Tag | HTML Tag |
How to set Default CSS Settings on HTML <samp> Tag | HTML Tag |
Read Full: | HTML Tag |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded: | 2 months ago |
Uploaded by: | Admin |
Views: | 129 |