Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML <samp> Tag

Improve Article
Save Article
  • Difficulty Level : Basic
  • Last Updated : 19 Jul, 2022
Improve Article
Save Article

It is a phrase tag and used to define the sample output text from a computer program.

<samp> Contents... </samp>



<!DOCTYPE html>
            <h2><samp> Tag</h2>
            <!-- html <samp> tag is used here -->
            <samp>A computer science portal for Geeks</samp>  


Supported Browsers: 

  • Apple Safari
  • Google Chrome
  • Edge 12 and above
  • Firefox 1 and above
  • Opera
  • Internet Explorer


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!