HTML Code Tag

HTML Code Tag


Define : 
This code is used to define a piece of computer code and The content inside is displayed in the browser's default monospace font.
For example :


Output : 
            
                     Tag             Description
<samp> It is defined as a sample output from a computer program
<kbd> It is defined as a keyboard input
<var> It is defined as a variable
<pre> It is defined as a performatted text

Browser Support
All browser are supports like opera, firefox, chrome, microsoft edge.

Global and Event Attributes
This tag also supports the Global and Event Attributes in HTML.

For example :

Output : 
            
Default CSS Settings
Most browsers will display the <code> element with the help of css

code {
  font-family: monospace;
}