Skip to content
Related Articles

Related Articles

Improve Article

HTML <samp> Tag

  • Difficulty Level : Basic
  • Last Updated : 11 Jun, 2021
Geek Week

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
  • Firefox
  • Opera
  • Internet Explorer


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :