Skip to content
Related Articles

Related Articles

Improve Article
HTML | <samp> Tag
  • Difficulty Level : Basic
  • Last Updated : 03 Dec, 2018

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


<samp> Contents... </samp>


<!DOCTYPE html>
        <title>samp tag</title>
        body {
        .gfg {
        .geeks {
        <div class ="gfg">GeeksForGeeks</div>
        <div class = "geeks"><samp> Tag</div>
        <samp>A computer science portal for Geeks</samp>


Supported Browsers: The browser supported by <samp> tag are listed below:

  • Apple Safari
  • Google Chrome
  • Firefox
  • Opera
  • Internet Explorer
My Personal Notes arrow_drop_up
Recommended Articles
Page :