<samp> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:samp

Introduction

samp element marks output from a program or computer system.

samp element summary

Item Value
Element samp
Local local attributes none
Changed in HTML5 N/A

Style convention

samp { 
   font-family: monospace; 
}

The following code shows how to use samp element.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <p>
         Output: <!--   ww  w .  j a va  2 s  .c o  m-->
         <samp>CSS</samp>
      </p>  
   </body>
</html>

Related Tutorials