HTML <samp> Tag

The <samp> tag is a phrase tag. It defines sample output from a computer program.

  • <em> Renders as emphasized text

  • <strong> Defines important text

  • <code> Defines a piece of computer code

  • <samp> Defines sample output from a computer program

  • <kbd> Defines keyboard input

  • <var> Defines a variable

  • Example

    <!DOCTYPE html>
    <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>

    © copyright 2017-2022 Completedone pvt ltd.