html tutorial - Sample <samp> tag in HTML - html5 - html code - html form




samp tag

Learn html - html tutorial - samp tag - html examples - html programs

  • <samp> tag is defined as sample output from a computer program.
  • <samp> tag is also known as Phrase tag.
  • Generally, the <samp> tag is displayed in the browsers with monotype font. (Such as Lucida console).
  • <samp> tag supports Global and Event attributes.
  • <samp> tag belongs to Flow content, Palpable content, and Phrasing content category.

Syntax for <samp> tag :

<samp>content</samp>

Sample Coding for <samp> tag in HTML:

Tryit<!DOCTYPE html>
<html >
    <head>
        <title>Wikitechy samp tag</title>
    </head>
    <body>
        <h2>HTML samp tag with example.</h2> 
        <p>Wikitechy<samp>step-by-step</samp>HTML tutorial.</p>
    </body>
</html>

Code Explanation for <samp> tag:

code explanation for sample <samp> tag

  1. <samp> element is displayed in monotype font.

Output of <samp> tag:

output for sample <samp> tag

  1. “step-by-step” will be displayed in different font.

Browser Support for <samp> tag:

Yes Yes Yes Yes Yes

Related Searches to samp tag in html

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×