A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/elements/samp below:

samp ยท WebPlatform Docs

samp Summary

The samp element represents output from a program or computing system.

Overview Table
DOM Interface
HTMLElement
Examples

This example uses the samp element to create a code sample.

<p>Once the task is run, you should see
<samp>Done, without errors</samp>.</p>
Usage
 The samp element is a phrasing-level element. It must not contain block-level elements, but it can contain other phrasing-level elements.
Notes

By default, most browsers render the contents of samp elements in a fixed-width, monospaced font, but you can change that with CSS.

If you are looking to mark up programming code, the code element would be more appropriate.

If you are looking to indicate user input (e.g. from a keyboard), the kbd element is more appropriate.

Related specifications
HTML 5.1
W3C Working Draft
HTML 5
W3C Recommendation
HTML 4.01
W3C Recommendation
See also Related articles HTML Text Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4