HTML <code> Tag
A piece of computer code is defined by the code tag. The material is shown in the browser's default monospace typeface.
The HTML <code>
element specifies a section of computer code in an HTML text. Browsers typically display the content included within the <code>
element in monospace typeface. This tag is sometimes referred to as the <code>
element.
Syntax
Supported Browsers
Element | Chrome | Firefox | Safari | Edge / IE | Opera |
---|---|---|---|---|---|
<code> | Yes | Yes | Yes | Yes | Yes |