<code>
causes text to be displayed
in a monospaced font and is usually applied to code samples.
<code> |
Yes | Yes | Yes | Yes | Yes |
None.
The <code> tag supports the Global Attributes in HTML.
The <code> tag supports the Event Attributes in HTML.
code { font-family: monospace; }
A demo showing how to use <code> tag.
<html>
<body>
<p>
This is a
<code>code</code>
.
</p>
</body>
</html>