How do we do computer output formatting using the <samp> tag in HTML?

HTMLWeb DevelopmentFront End Technology

<samp> tag is a phrase tag.It is used to identify the sample output from a computer program. Most browsers will display the <samp> element in monotype font.

This tag can be used in html document as −


   <title>Title of the document</title>
<h2> HTML document</h2>
   <p>This is a paragraph.</p>
   <p>This is another paragraph</p>
Updated on 22-Jun-2020 14:22:22