<samp> HTML Tag

In this article we will discuss about how to use the samp Tag in HTML.
  • 1726

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:
tableout.jpg 

Ask Your Question 

Got a programming related question? You may want to post your question here
 
Programming Answers here
© 2020 DotNetHeaven. All rights reserved.