samp (Sample) tag

<Samp> (Sample Tag)


Samp tag is used to highlight and show the text in different font style and size.

Example Code:

Result :

Who is the head of ICICI Bank?
  • It can be used to display the codes.
  • It can be added with the <pre>.
  • Browsers normally display the sample content in a "monospaced font".
It is available in the previous versions of HTML.
It supports both Global Attributes and Event Attributes in HTML5.


It will function in all the browsers.

Ask Questions

Ask Question