Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

HTML samp element

3 tags 1 category

The <samp> HTML element is used to enclose inline text which represents sample (or quoted) output from a computer program. Its contents are typically rendered using the browser’s default monospaced font (such as Courier>) or Lucida Console).

You can use a CSS rule to override the browser’s default font face for the <samp> element; however, it’s possible that the browser’s preferences may take precedence over any CSS you specify.

The CSS to override the default font face would look like this:

Note: If you need an element which will serve as a container for output generated by your website or app’s JavaScript code, you should instead use the <output> element.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…