HTML <code> Tag
Format text in a document:
Definition and Usage
<code> A tag is a phrase tag that defines computer code text.
Tip: We are not opposed to using this tag, but if you use this tag just to achieve a certain visual effect, we recommend that you use CSS, which may get richer effects.
All phrase tags:
|<em>||Rendered as emphasized text.|
|<strong>||Defines important text.|
|<dfn>||Define a definition item.|
|<code>||Defines computer code text.|
|<samp>||Defines sample text.|
|<kbd>||Defines keyboard text. It indicates that the text was typed from the keyboard. It is often used in computer-related documents or manuals.|
|<var>||Define variables. You can compare this tag with <pre> and <code> Labels work together.|
Differences Between HTML 4.01 and HTML5