<samp> HTML Tag
In this article we will discuss about how to use the samp Tag in HTML.
The HTML samp
tag is used for indicating sample output from a computer program. It defines the sample output and indicated by the <samp> tag in HTML.
HTML Code:
<html>
<head>
<title>This is my first web page</title>
</head>
<body>
<p>
If you select the 'champion' option, you will receive the message
<samp>
The monkey is not a caterpillar</samp>.</p>
When you click the <kbd>Cancel</kbd> button, you will be asked
<samp>
Are you sure you want to cancel the document</samp>
<br>Click <kbd>Yes</kbd> to continue.
</body>
</html>
|
Output:
Ask Your Question