Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Add Sample Computer Code in HTML



Use the <samp> tag to display a sample computer code. The HTML <samp> tag is used to display the output of a computer program.

Example

You can try to run the following code to implement <samp> tag in HTML −

<!Doctype html>
<html>
   <head>
      <title>HTML samp Tag</title>
   </head>
   <body>
      <p>The header file always starts with <samp>#include</samp>.</p>
   </body>
</html>
Updated on: 2020-05-29T23:04:24+05:30

144 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements