Home Tutorial Html Html5 HTML5 samp tag, Example of <samp> tag in html5

 
 

Share on Google+Share on Google+
HTML5 samp tag, Example of <samp> tag in html5
Posted on: September 14, 2010 at 12:00 AM
Advertisement
In this illustration, We will inform you about the <samp> tag in html5.

HTML5 samp tag, Example of <samp> tag in html5

In this illustration, We will inform you about the <samp> tag in html5. The <samp> tag is used for specifying the output of a computer program or system in the html document. This tag must have opening and closing <samp> tags.

Declaration Syntax:

The syntax for <samp> tag is as:

<samp>Your Text Here</samp>

This tag have no specific attribute.

Example: kbd_tag.html.

<!DOCTYPE html>
<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:

Download This Example:

Difference between HTML5 and HTML4.

None.

Advertisement

Related Tags for HTML5 samp tag, Example of <samp> tag in html5:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 14, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com