How do we add a sample computer code in HTML?

HTMLWeb DevelopmentFront End Technology

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


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

<!Doctype html>
      <title>HTML samp Tag</title>
      <p>The header file always starts with <samp>#include</samp>.</p>
Published on 13-Mar-2018 18:26:25