<samp>: The HTML Sample Output Element

I. Description

The HTML <samp> element is used to contain sample output from a computer program. The contents of the <samp> element are typically rendered in a monospace font.

Using the <samp> element allows search engines to better understand the content of your website.

II. Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Example Page</title>
    </head>
    <body>
        <h1>Scheduling Python Program Output</h1>
        <p>
            <samp>
                Please enter a date.<br/>
                Date:
            </samp>
        </p>
    </body>
</html>

This document was last updated: