<samp> Tag in HTML 5

In this article I am going to explain about samp tag in HTML 5.
  • 1999
efinition

The HTML5 <samp> tag is used for indicating sample output from a code. This tag must have opening and closing <samp> tags. The <samp> tag is supported to all major browsers.

Lets take an example of <Samp> tag

<html>
 <head>
     <title>Example of samp Tag</title>
 </head>
 <body>
     The normal text here.<br>
     <samp>
         This is the sample text.<br>
         You can see the difference in text.
     </samp>
 </body>
 </html>

Output

 Clipboard03.jpg

 Further Readings

You may also read more about HTML5 here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2019 DotNetHeaven. All rights reserved.