HTML <code> (Code) Tag
Example
<p> The <code><center></code> tag is deprecated by HTML5 version.</p>
Meaning
The <code> element indicates that the enclosed text is source code in a programming language.
Note: This element is best used for short code fragments because it does not preserve white space.
Related Elements
Version: HTML 2, 3.2, 4, 4.01,5
Standard Syntax
<code>Code</code>
Browser Support
Status
Global Attributes
<code> element also supports the Global Attributes in HTML.
Event Attributes
<code> element also supports the Event Attributes in HTML.
By Default CSS Value(s)
Most of the browsers will display the <> element with the following by default value(s)
code {
font-family: monospace;
}